mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-11-22 01:45:40 +01:00
Merge 3e152a96dc
into a70a5c6ab2
This commit is contained in:
commit
827d5ac1ec
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
@ -102,6 +102,19 @@ jobs:
|
||||
if: contains(matrix.runtime, 'arm64')
|
||||
run: yarn run build:arm64
|
||||
|
||||
- name: Convert X64 AppImage to static runtime
|
||||
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-x64')
|
||||
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" ./appimagetool.AppImage
|
||||
./"$appimage" --appimage-extract && rm -f ./"$appimage"
|
||||
./appimagetool.AppImage --comp zstd --mksquashfs-opt -Xcompression-level --mksquashfs-opt 20 \
|
||||
-n ./squashfs-root ./"$appimage"
|
||||
rm -rf ./squashfs-root ./appimagetool.AppImage
|
||||
|
||||
- name: Upload Linux .zip x64 Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-x64')
|
||||
|
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@ -73,6 +73,19 @@ jobs:
|
||||
if: contains(matrix.runtime, 'arm64')
|
||||
run: yarn run build:arm64
|
||||
|
||||
- name: Convert X64 AppImage to static runtime
|
||||
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-x64')
|
||||
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" ./appimagetool.AppImage
|
||||
./"$appimage" --appimage-extract && rm -f ./"$appimage"
|
||||
./appimagetool.AppImage --comp zstd --mksquashfs-opt -Xcompression-level --mksquashfs-opt 20 \
|
||||
-n ./squashfs-root ./"$appimage"
|
||||
rm -rf ./squashfs-root ./appimagetool.AppImage
|
||||
|
||||
- name: Upload AppImage x64 Release
|
||||
uses: actions/upload-release-asset@v1
|
||||
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-x64')
|
||||
|
Loading…
Reference in New Issue
Block a user