Skip to content

Commit

Permalink
add linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
x100111010 committed Oct 2, 2024
1 parent 66e60f7 commit 8db9565
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Update packages
run: sudo apt-get update && sudo apt-get upgrade -y

- name: Install system libraries
run: sudo apt-get install -y build-essential libgtk-3-dev libblkid-dev liblzma-dev ninja-build pkg-config

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
Expand Down Expand Up @@ -58,7 +64,16 @@ jobs:
# Rename Universal APK with Release Tag
mv build/app/outputs/flutter-apk/app-release.apk bin/spectrum-${{ github.event.release.tag_name }}-app-universal.apk
- name: Build Linux app
run: |
flutter build linux
# Rename with Release Tag
mv build/linux/x64/release/bundle/spectrum bin/spectrum-${{ github.event.release.tag_name }}-linux
- name: Upload release assets
uses: softprops/action-gh-release@v2
with:
files: bin/*.apk
files: |
bin/*.apk
bin/spectrum-${{ github.event.release.tag_name }}-linux

0 comments on commit 8db9565

Please sign in to comment.