fix: support symlinked appimage launches

This commit is contained in:
lucaronin
2026-05-13 16:06:57 +02:00
parent 9be428aad3
commit 41f0e00cfb
7 changed files with 427 additions and 6 deletions

View File

@@ -325,6 +325,9 @@ jobs:
run: |
rm -rf src-tauri/target/x86_64-unknown-linux-gnu/release/bundle
- name: Prepare AppImage symlink launcher patch
run: node scripts/appimage-launcher-tools.mjs prepare-plugin
- name: Set version
run: |
VERSION="${{ needs.version.outputs.version }}"
@@ -346,8 +349,11 @@ jobs:
- name: Validate Linux bundles
run: |
shopt -s nullglob
installers=(
appimages=(
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/appimage/*.AppImage
)
installers=(
"${appimages[@]}"
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/rpm/*.rpm
)
@@ -356,6 +362,10 @@ jobs:
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/appimage/*.AppImage.tar.gz.sig
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb.sig
)
if [ ${#appimages[@]} -eq 0 ]; then
echo "::error::Linux build produced no AppImage bundle."
exit 1
fi
if [ ${#installers[@]} -eq 0 ]; then
echo "::error::Linux build produced no AppImage, deb or rpm bundle."
exit 1
@@ -364,6 +374,7 @@ jobs:
echo "::error::Linux build produced no updater signature (.sig) artifact."
exit 1
fi
node scripts/appimage-launcher-tools.mjs validate-appimages "${appimages[@]}"
- name: Upload Linux bundles
uses: actions/upload-artifact@v4

View File

@@ -381,6 +381,9 @@ jobs:
run: |
rm -rf src-tauri/target/x86_64-unknown-linux-gnu/release/bundle
- name: Prepare AppImage symlink launcher patch
run: node scripts/appimage-launcher-tools.mjs prepare-plugin
- name: Set version
run: |
VERSION="${{ needs.version.outputs.version }}"
@@ -402,8 +405,11 @@ jobs:
- name: Validate Linux bundles
run: |
shopt -s nullglob
installers=(
appimages=(
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/appimage/*.AppImage
)
installers=(
"${appimages[@]}"
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/rpm/*.rpm
)
@@ -412,6 +418,10 @@ jobs:
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/appimage/*.AppImage.tar.gz.sig
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb.sig
)
if [ ${#appimages[@]} -eq 0 ]; then
echo "::error::Linux build produced no AppImage bundle."
exit 1
fi
if [ ${#installers[@]} -eq 0 ]; then
echo "::error::Linux build produced no AppImage, deb or rpm bundle."
exit 1
@@ -420,6 +430,7 @@ jobs:
echo "::error::Linux build produced no updater signature (.sig) artifact."
exit 1
fi
node scripts/appimage-launcher-tools.mjs validate-appimages "${appimages[@]}"
- name: Upload Linux bundles
uses: actions/upload-artifact@v4