Skip to content

Update linux-deb.yml #11

Update linux-deb.yml

Update linux-deb.yml #11

Workflow file for this run

name: Build linux deb
on: push
jobs:
build-linux-deb:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.22.2'
- 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: 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: install required deps for linux package
run: |
sudo apt-get install libmpv-dev mpv libayatana-appindicator3-dev ninja-build libgtk-3-dev
- name: Flutter doctor
run: flutter doctor
- name: Build linux deb package and tar file
working-directory: ./Harmony-Music
run: |
dart pub global activate flutter_distributor
flutter_distributor package --platform linux --targets deb
- name: Build linux portable tar
working-directory: ./Harmony-Music
run: |
cd build/linux/x64/release/bundle
tar -czaf harmonymusic-Linux-Portable.tar.gz ./*
- name: Upload linux deb artifact
uses: actions/upload-artifact@v4
with:
name: Harmony music linux deb
path: ./Harmony-Music/dist/*
- name: Upload linux portable tar
uses: actions/upload-artifact@v4
with:
name: Harmony music linux tar
path: ./Harmony-Music/build/linux/x64/release/bundle/harmonymusic-Linux-Portable.tar.gz