From 5ca0d66b63f660a94b6f8380437670df37e545a6 Mon Sep 17 00:00:00 2001 From: anandnet <45705030+anandnet@users.noreply.github.com> Date: Tue, 1 Oct 2024 17:46:28 +0530 Subject: [PATCH] Update linux-deb.yml --- .github/workflows/linux-deb.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/linux-deb.yml b/.github/workflows/linux-deb.yml index 2b4ae75..60b2df3 100644 --- a/.github/workflows/linux-deb.yml +++ b/.github/workflows/linux-deb.yml @@ -11,13 +11,25 @@ jobs: with: channel: 'stable' flutter-version: '3.24.2' + + - name: install required deps for linux package + run: | + sudo apt-get install libmpv-dev mpv libayatana-appindicator3-dev ninja-build libgtk-3-dev rpm patchelf locate libfuse2 + 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 project dependencies - working-directory: ./Harmony-Music - run: flutter pub get + - 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 @@ -26,25 +38,14 @@ jobs: - name: Set update check flag to true working-directory: ./Harmony-Music/lib/utils run: echo "const updateCheckFlag = true;" > update_check_flag_file.dart - - - name: install required deps for linux package - run: | - sudo apt-get install libmpv-dev mpv libayatana-appindicator3-dev ninja-build libgtk-3-dev rpm patchelf locate libfuse2 - 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: Build linux deb, appImage & rpm package working-directory: ./Harmony-Music run: | - dart pub global activate flutter_distributor 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: