Skip to content

Commit

Permalink
add appimage build
Browse files Browse the repository at this point in the history
  • Loading branch information
sun-jiao committed Feb 24, 2024
1 parent bb3a000 commit e61993d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ jobs:
- name: Update dependencies
run: sudo apt-get update
- name: Install dependencies
run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-0 libgtk-3-dev libblkid1 liblzma5
run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-0 libgtk-3-dev libblkid1 liblzma5 appimagetool
- name: Install project dependencies
run: flutter pub get
- name: Enable linux build
run: flutter config --enable-linux-desktop
- name: Build artifacts
run: flutter build linux --release
- name: Build Appimage
run: appimage_build.sh
- name: Linux Release
uses: actions/upload-artifact@v4
with:
Expand Down
1 change: 1 addition & 0 deletions appimage_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ cp -r ./appimage/AppRun ./build/linux/x64/renamer.AppDir
chmod +x ./build/linux/x64/renamer.AppDir/AppRun
appimagetool ./build/linux/x64/renamer.AppDir
rm -rf ./build/linux/x64/renamer.AppDir
cp Renamer-x86_64.AppImage ./build/linux/x64/release/bundle/

0 comments on commit e61993d

Please sign in to comment.