Skip to content

Commit e3e6309

Browse files
authored
Refactor make-appimage.sh for AppImage setup
Remove DEBLOAT_LOCALE export and adjust sed commands for AppImage compatibility.
1 parent 87f6c5e commit e3e6309

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

make-appimage.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export DEPLOY_GTK=1
1515
export GTK_DIR=gtk-4.0
1616
export ANYLINUX_LIB=1
1717
export DEPLOY_LOCALE=1
18-
export DEBLOAT_LOCALE=0
1918
export STARTUPWMCLASS=se.sjoerd.Graphs # Default to Wayland's wmclass. For X11, GTK_CLASS_FIX will force the wmclass to be the Wayland one.
2019
export GTK_CLASS_FIX=1
2120

@@ -24,7 +23,7 @@ quick-sharun /usr/bin/graphs \
2423
/usr/lib/libgirepository*
2524

2625
# Patch Graphs to use AppImage's directory
27-
sed -i '/ import gi/a\
26+
sed -i '/ gi.require_version("Graphs", "1")/a\
2827
SHARUN_DIR = os.getenv('"'"'SHARUN_DIR'"'"')' ./AppDir/bin/graphs
2928
sed -i 's|graph_path_dir = "/usr/share/graphs"|graph_path_dir = os.path.join(SHARUN_DIR, '"'"'share'"'"', '"'"'graphs'"'"')|' ./AppDir/bin/graphs
3029
sed -i 's|localedir = "/usr/share/locale"|localedir = os.path.join(SHARUN_DIR, '"'"'share'"'"', '"'"'locale'"'"')|' ./AppDir/bin/graphs

0 commit comments

Comments
 (0)