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 f2fe240
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 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 libsecret-1-dev

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
Expand Down Expand Up @@ -58,7 +64,17 @@ 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 --release
# create a tar.gz archive with all necessary files
tar -czvf spectrum-${{ github.event.release.tag_name }}-linux.tar.gz -C build/linux/x64/release/bundle .
mv spectrum-${{ github.event.release.tag_name }}-linux.tar.gz bin/
- 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.tar.gz

0 comments on commit f2fe240

Please sign in to comment.