|
@@ -1,13 +1,15 @@
|
|
#!/bin/bash
|
|
#!/bin/bash
|
|
|
|
|
|
-set -e
|
|
|
|
|
|
+set -euxo pipefail
|
|
|
|
+
|
|
|
|
+export ARCH=x86_64
|
|
|
|
|
|
mkdir -p {{app_name}}.AppDir
|
|
mkdir -p {{app_name}}.AppDir
|
|
cp -r ../deb/{{bundle_name}}/data/usr {{app_name}}.AppDir
|
|
cp -r ../deb/{{bundle_name}}/data/usr {{app_name}}.AppDir
|
|
|
|
|
|
cd {{app_name}}.AppDir
|
|
cd {{app_name}}.AppDir
|
|
|
|
|
|
-wget -q -O AppRun https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-x86_64
|
|
|
|
|
|
+wget -q -O AppRun https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-x86_64 || wget -q -O AppRun https://github.com/AppImage/AppImageKit/releases/download/12/AppRun-aarch64
|
|
chmod +x AppRun
|
|
chmod +x AppRun
|
|
|
|
|
|
cp usr/share/icons/hicolor/256x256/apps/{{app_name}}.png {{app_name}}.png
|
|
cp usr/share/icons/hicolor/256x256/apps/{{app_name}}.png {{app_name}}.png
|
|
@@ -29,6 +31,6 @@ mv {{app_name}}.desktop {{app_name}}.AppDir/{{app_name}}.desktop
|
|
|
|
|
|
mksquashfs {{app_name}}.AppDir {{app_name}}.squashfs -root-owned -noappend
|
|
mksquashfs {{app_name}}.AppDir {{app_name}}.squashfs -root-owned -noappend
|
|
|
|
|
|
-wget -q -O appimagetool https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
|
|
|
|
|
|
+wget -q -O appimagetool https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage || wget -q -O appimagetool https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage
|
|
chmod +x appimagetool
|
|
chmod +x appimagetool
|
|
./appimagetool {{app_name}}.AppDir {{app_name}}.AppImage
|
|
./appimagetool {{app_name}}.AppDir {{app_name}}.AppImage
|