From cbc10e0a2f87aa8de011f1dc2dcc0b6ba8cae33a Mon Sep 17 00:00:00 2001 From: Samuel <36420837+Samueru-sama@users.noreply.github.com> Date: Wed, 25 Sep 2024 03:55:28 -0400 Subject: [PATCH 1/3] Convert X64 AppImage to static runtime Drops libfuse2 dependency from AppImage --- .github/workflows/build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f726d5aaf..d35c5a28f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -103,6 +103,18 @@ 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 + 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 + ./appimagetool.AppImage --comp zstd --mksquashfs-opt -Xcompression-level --mksquashfs-opt 20 \ + -n ./squashfs-root ./FreeTube-${{ steps.versionNumber.outputs.result }}.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') From c30b97e55be2c05f7717bdd56e85be1066bb57c0 Mon Sep 17 00:00:00 2001 From: Samuel <36420837+Samueru-sama@users.noreply.github.com> Date: Thu, 3 Oct 2024 09:03:06 -0400 Subject: [PATCH 2/3] Appimage CI: small refactor, declare variable --- .github/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d35c5a28f..ff38345bb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 From 3e152a96dc5723205e0f049557d9e3700b43f618 Mon Sep 17 00:00:00 2001 From: Samuel <36420837+Samueru-sama@users.noreply.github.com> Date: Thu, 14 Nov 2024 17:20:11 -0400 Subject: [PATCH 3/3] Convert X64 release AppImage to static runtime --- .github/workflows/release.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eee0f8a46..87eded7c8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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')