-
Notifications
You must be signed in to change notification settings - Fork 27
53 lines (43 loc) · 1.87 KB
/
linux-deb.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build linux binaries (deb, appimage & rpm)
on: workflow_dispatch
jobs:
build-linux-deb-appimage-rpm:
runs-on: ubuntu-22.04.5
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.24.2'
- name: install required deps for linux package
run: |
sudo apt-get install libayatana-appindicator3-dev
wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
chmod +x appimagetool && mv appimagetool /usr/local/bin/
- name: Flutter doctor
run: flutter doctor
- name: Clone project
run: git clone https://github.com/anandnet/Harmony-Music.git
- name: Install Flutter distributor
run: |
dart pub global activate melos
git clone https://github.com/anandnet/flutter_distributor.git
cd flutter_distributor && git rev-parse HEAD
melos run activate
- name: Update lang data
working-directory: ./Harmony-Music
run: dart localization/generator.dart
- name: Set update check flag to true
working-directory: ./Harmony-Music/lib/utils
run: echo "const updateCheckFlag = true;" > update_check_flag_file.dart
- name: Build linux deb, appImage & rpm package
working-directory: ./Harmony-Music
run: |
flutter_distributor package --platform linux --targets deb
flutter_distributor package --platform linux --targets rpm
flutter_distributor package "target-platform=linux-x64" --platform linux --targets appimage
- name: Upload linux binaries
uses: actions/upload-artifact@v4
with:
name: Harmony music linux binaries
path: ./Harmony-Music/dist/*