Skip to content

Commit

Permalink
Update linux-deb.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
anandnet authored Oct 13, 2024
1 parent fac8147 commit ab93f6e
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/linux-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: workflow_dispatch

jobs:
build-linux-deb-appimage-rpm:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04.5

steps:
- uses: actions/checkout@v3
Expand All @@ -15,39 +15,39 @@ jobs:
- 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/
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: Flutter doctor
run: flutter doctor

# - name: Clone project
# run: git clone https://github.com/anandnet/Harmony-Music.git
- 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: 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: 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: 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: 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/*
- name: Upload linux binaries
uses: actions/upload-artifact@v4
with:
name: Harmony music linux binaries
path: ./Harmony-Music/dist/*

0 comments on commit ab93f6e

Please sign in to comment.