Appimage CI: small refactor, declare variable

This commit is contained in:
Samuel 2024-10-03 09:03:06 -04:00 committed by GitHub
parent cbc10e0a2f
commit c30b97e55b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -108,11 +108,12 @@ jobs:
run: |
sudo apt install desktop-file-utils
cd build
appimage="FreeTube-${{ steps.versionNumber.outputs.result }}.AppImage"
wget "https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage" -O ./appimagetool.AppImage
chmod +x *.AppImage && ./FreeTube-${{ steps.versionNumber.outputs.result }}.AppImage --appimage-extract
rm -f ./FreeTube*.AppImage
chmod +x ./"$appimage" ./appimagetool.AppImage
./"$appimage" --appimage-extract && rm -f ./"$appimage"
./appimagetool.AppImage --comp zstd --mksquashfs-opt -Xcompression-level --mksquashfs-opt 20 \
-n ./squashfs-root ./FreeTube-${{ steps.versionNumber.outputs.result }}.AppImage
-n ./squashfs-root ./"$appimage"
rm -rf ./squashfs-root ./appimagetool.AppImage
- name: Upload Linux .zip x64 Artifact