Skip to content

Commit

Permalink
add appimage to release
Browse files Browse the repository at this point in the history
  • Loading branch information
zqigolden committed Dec 18, 2024
1 parent ee76922 commit 0f2828a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 106 deletions.
103 changes: 0 additions & 103 deletions .github/workflows/appimage.yaml

This file was deleted.

34 changes: 31 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,38 @@
run: tar -zcvf oneAnime_linux_${{ env.tag }}.tar.gz -C build/linux/x64/release/bundle .
shell: bash

- name: Download and extract linuxdeploy
run: |
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
chmod +x linuxdeploy-x86_64.AppImage
# Extract the AppImage
./linuxdeploy-x86_64.AppImage --appimage-extract
# Rename for clarity
mv squashfs-root linuxdeploy
- name: Prepare AppDir
shell: bash
run: |
mkdir -p AppDir/usr/bin
cp -r build/linux/x64/release/bundle/* AppDir/usr/bin/
cp oneAnime.desktop AppDir/oneAnime.desktop
cp assets/images/logo/logo_rounded_160x160.png AppDir/icon.png
- name: Build AppImage
run: |
linuxdeploy/AppRun --appdir AppDir \
--desktop-file AppDir/oneAnime.desktop \
--icon-file AppDir/icon.png \
--output appimage
mv OneAnime-x86_64.AppImage oneAnime_linux_${{ env.tag }}.AppImage
- name: Upload linux outputs
uses: actions/upload-artifact@v4
with:
name: linux_outputs
path: oneAnime_linux_*.tar.gz
path: |
oneAnime_linux_*.tar.gz
oneAnime_linux_*.AppImage
flutter-build-macos:
name: "Release for Macos"
Expand Down Expand Up @@ -242,7 +269,7 @@
- name: List files in linux_outputs directory
run: ls -l linux_outputs
- name: Copy linux build file to root
run: cp linux_outputs/* oneAnime_linux_${{ env.tag }}.tar.gz
run: cp linux_outputs/* .

- name: Download macos build file
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -300,4 +327,5 @@
oneAnime_windows_*.zip
oneAnime_macos_*.dmg
oneAnime_ios_*.ipa
oneAnime_linux_*.tar.gz
oneAnime_linux_*.tar.gz
oneAnime_linux_*.AppImage

0 comments on commit 0f2828a

Please sign in to comment.