Skip to content

Commit dc3ee55

Browse files
authored
Update make-appimage.sh
1 parent 88f2a05 commit dc3ee55

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

make-appimage.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ quick-sharun /usr/bin/graphs \
2323
/usr/lib/libgirepository*
2424

2525
# Patch Graphs to use AppImage's directory
26-
sed -i '/graph_path_dir = "/usr/share/graphs"/c\graph_path_dir = os.getenv("SHARUN_DIR", "/usr") + "/share/graphs"' ./AppDir/bin/graphs
27-
sed -i '/localedir = "/usr/share/locale"/c\localedir = os.getenv("SHARUN_DIR", "/usr") + "/share/locale"' ./AppDir/bin/graphs
28-
sed -i '/localedir = "/usr/share/locale"/c\localedir = os.getenv("SHARUN_DIR", "/usr") + "/share/locale"' ./AppDir/bin/graphs
29-
sed -i '/gresource_location = os.path.join("/usr/share/graphs", "se.sjoerd.Graphs.gresource")/c\gresource_location = os.path.join(graph_path_dir, "se.sjoerd.Graphs.gresource")' ./AppDir/bin/graphs
26+
sed -i 's|graph_path_dir = "/usr/share/graphs"|graph_path_dir = os.getenv("SHARUN_DIR", "/usr") + "/share/graphs"|' ./AppDir/bin/graphs
27+
sed -i 's|localedir = "/usr/share/locale"|localedir = os.getenv("SHARUN_DIR", "/usr") + "/share/locale"|' ./AppDir/bin/graphs
28+
sed -i 's|localedir = "/usr/share/locale"|localedir = os.getenv("SHARUN_DIR", "/usr") + "/share/locale"|' ./AppDir/bin/graphs
29+
sed -i 's|gresource_location = os.path.join("/usr/share/graphs", "se.sjoerd.Graphs.gresource")|gresource_location = os.path.join(graph_path_dir, "se.sjoerd.Graphs.gresource")|' ./AppDir/bin/graphs
3030

3131
# Turn AppDir into AppImage
3232
quick-sharun --make-appimage

0 commit comments

Comments
 (0)