Skip to content

Commit

Permalink
Update builder.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-hc committed Aug 19, 2024
1 parent e499117 commit 3cb19da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
APP=whatsapp-nativefier
mkdir tmp
cd ./tmp
wget -q "$(wget -q https://api.github.com/repos/probonopd/go-appimage/releases -O - | sed 's/"/ /g; s/ /\n/g' | grep -o 'https.*continuous.*tool.*86_64.*mage$')" -O appimagetool
wget -q https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage -O appimagetool
chmod a+x ./appimagetool

VERSION=$(curl -Ls https://api.github.com/repos/frealgagu/archlinux.whatsapp-nativefier/releases/latest | grep -E tag_name | awk -F '[""]' '{print $4}')
Expand All @@ -22,6 +22,6 @@ export UNION_PRELOAD="${HERE}"
exec "${HERE}"/WhatsApp "$@"
EOF
chmod a+x ./$APP.AppDir/AppRun
ARCH=x86_64 VERSION=$(./appimagetool -v | grep -o '[[:digit:]]*') ./appimagetool -s ./$APP.AppDir
ARCH=x86_64 ./appimagetool --comp zstd --mksquashfs-opt -Xcompression-level --mksquashfs-opt 20 ./$APP.AppDir
cd ..
mv ./tmp/*.AppImage ./Whatsapp-nativefier-$VERSION-x86_64.AppImage

0 comments on commit 3cb19da

Please sign in to comment.