Skip to content

Build Windows exe

Build Windows exe #10

Workflow file for this run

name: Build Windows exe
on: workflow_dispatch
jobs:
build-windows-exe:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.24.2'
- uses: actions/setup-java@v4
with:
distribution: 'microsoft'
java-version: '11'
- name: Clone project
run: git clone https://github.com/anandnet/Harmony-Music.git
- name: Flutter doctor
run: flutter doctor
- 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: Build windows exe package
working-directory: ./Harmony-Music
run: |
flutter clean
dart pub global activate flutter_distributor
flutter_distributor package --platform windows --targets exe
- name: Upload Windows exe artifact
uses: actions/upload-artifact@v4
with:
name: Harmony music windows exe
path: ./Harmony-Music/dist/*