2020-10-07 10:36:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
2021-01-15 21:04:53 +00:00
|
|
|
unset SOURCE_DATE_EPOCH
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2021-02-20 06:33:04 +00:00
|
|
|
APPDIR="$PWD/wowllet.AppDir"
|
2020-12-21 20:34:36 +00:00
|
|
|
|
2020-10-07 10:36:04 +00:00
|
|
|
mkdir -p "$APPDIR"
|
|
|
|
mkdir -p "$APPDIR/usr/share/applications/"
|
|
|
|
mkdir -p "$APPDIR/usr/bin"
|
|
|
|
|
2021-02-20 06:33:04 +00:00
|
|
|
cp "$PWD/src/assets/wowllet.desktop" "$APPDIR/usr/share/applications/wowllet.desktop"
|
|
|
|
cp "$PWD/src/assets/images/appicons/64x64.png" "$APPDIR/wowllet.png"
|
|
|
|
cp "$PWD/build/bin/wowllet" "$APPDIR/usr/bin/wowllet"
|
2021-01-15 21:04:53 +00:00
|
|
|
|
2021-02-20 06:33:04 +00:00
|
|
|
LD_LIBRARY_PATH=/usr/local/lib /linuxdeployqt/squashfs-root/AppRun feather.AppDir/usr/share/applications/wowllet.desktop -bundle-non-qt-libs
|
2021-01-15 21:04:53 +00:00
|
|
|
|
|
|
|
find feather.AppDir/ -exec touch -h -a -m -t 202101010100.00 {} \;
|
|
|
|
|
|
|
|
# Manually create AppImage (reproducibly)
|
|
|
|
|
|
|
|
# download runtime
|
|
|
|
wget -nc https://github.com/AppImage/AppImageKit/releases/download/12/runtime-x86_64
|
|
|
|
echo "24da8e0e149b7211cbfb00a545189a1101cb18d1f27d4cfc1895837d2c30bc30 runtime-x86_64" | sha256sum -c
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2021-01-15 21:04:53 +00:00
|
|
|
mksquashfs feather.AppDir feather.squashfs -info -root-owned -no-xattrs -noappend -fstime 0
|
|
|
|
# mksquashfs writes a timestamp to the header
|
|
|
|
printf '\x00\x00\x00\x00' | dd conv=notrunc of=feather.squashfs bs=1 seek=$((0x8))
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2021-02-20 06:33:04 +00:00
|
|
|
rm -f wowllet.AppImage
|
|
|
|
cat runtime-x86_64 >> wowllet.AppImage
|
|
|
|
cat feather.squashfs >> wowllet.AppImage
|
|
|
|
chmod a+x wowllet.AppImage
|