fix(tauri-bundler) appimage script (#766)

This commit is contained in:
Lucas Fernandes Nogueira 2020-07-08 14:05:34 -03:00 committed by GitHub
parent 225c8b4e5f
commit acd8ceb72c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 4 deletions

View File

@ -0,0 +1,5 @@
---
"tauri-bundler": patch
---
Fixes the AppImage bundler script.

View File

@ -1,13 +1,15 @@
#!/bin/bash
set -e
set -euxo pipefail
export ARCH=x86_64
mkdir -p {{app_name}}.AppDir
cp -r ../deb/{{bundle_name}}/data/usr {{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
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
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
./appimagetool {{app_name}}.AppDir {{app_name}}.AppImage

View File

@ -3,7 +3,7 @@
# Create a read-only disk image of the contents of a folder
# forked from https://github.com/andreyvit/create-dmg
set -e;
set -euxo pipefail;
function pure_version() {
echo '1.0.0.6'