Skip to content

Commit

Permalink
switch to different method to allow Qt theming
Browse files Browse the repository at this point in the history
  • Loading branch information
Samueru-sama authored Nov 28, 2024
1 parent 24e9637 commit fd77105
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions speedcrunch-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,16 @@ ln -s ./org.speedcrunch.SpeedCrunch.png ./.DirIcon

export VERSION="$(echo "$APP_URL" | awk -F"-" '{print $(NF-1)}')"

# Get dark theme stylesheet
wget "$DARKTHEME" -O ./dark.stylesheet

# AppRun
cat >> ./AppRun << 'EOF'
#!/usr/bin/env sh
CURRENTDIR="$(readlink -f "$(dirname "$0")")"
export GCONV_PATH="$CURRENTDIR/usr/lib/gconv"
[ -f "$APPIMAGE".stylesheet ] && APPIMAGE_QT_THEME="$APPIMAGE.stylesheet"
[ -f "$APPIMAGE_QT_THEME" ] && set -- "$@" "-stylesheet" "$APPIMAGE_QT_THEME"
exec "$CURRENTDIR/ld-linux-x86-64.so.2" \
--library-path "$CURRENTDIR/usr/lib" \
"$CURRENTDIR"/usr/bin/speedcrunch "$@" \
-stylesheet "$CURRENTDIR"/dark.stylesheet
"$CURRENTDIR"/usr/bin/speedcrunch "$@"
EOF
chmod +x ./AppRun

Expand Down

0 comments on commit fd77105

Please sign in to comment.