From a04eed97a5c39f7738ec85df89db00ab7aaba581 Mon Sep 17 00:00:00 2001 From: raojinlin <1239015423@qq.com> Date: Tue, 27 Feb 2024 20:19:34 +0800 Subject: [PATCH] feat: add appimage build action --- .github/workflows/release-linux.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/release-linux.yaml b/.github/workflows/release-linux.yaml index a45f957..58e6ba1 100644 --- a/.github/workflows/release-linux.yaml +++ b/.github/workflows/release-linux.yaml @@ -108,6 +108,17 @@ jobs: mv tiny-rdm_0.0.0_amd64 "tiny-rdm_${{ steps.normalise_version.outputs.version }}_amd64" sed -i 's/0.0.0/${{ steps.normalise_version.outputs.version }}/g' "tiny-rdm_${{ steps.normalise_version.outputs.version }}_amd64/DEBIAN/control" dpkg-deb --build -Zxz "tiny-rdm_${{ steps.normalise_version.outputs.version }}_amd64" + - name: Package up appimage file + run: | + curl https://github.com/linuxdeploy/linuxdeploy/releases/download/1-alpha-20240109-1/linuxdeploy-x86_64.AppImage -O -L + chmod u+x linuxdeploy-x86_64.AppImage + ./linuxdeploy-x86_64.AppImage --appdir AppDir \ + --output=appimage \ + -e build/linux/tiny-rdm_0.0.0_amd64/usr/local/bin/tiny-rdm \ + -d build/linux/tiny-rdm_0.0.0_amd64/usr/share/applications/tiny-rdm.desktop + -i build/linux/tiny-rdm_0.0.0_amd64/usr/share/icons/hicolor/512x512/apps/tiny-rdm.png + ls -l + - name: Rename deb working-directory: ./build/linux