mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-09-22 05:39:53 +03:00
fix(tauri-bundler) appimage script (#766)
This commit is contained in:
parent
225c8b4e5f
commit
acd8ceb72c
5
.changes/appimage-script.md
Normal file
5
.changes/appimage-script.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri-bundler": patch
|
||||
---
|
||||
|
||||
Fixes the AppImage bundler script.
|
@ -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
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user