From af63ae6ba80e8d8769e0ae18e60799a6804e5e0b Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Tue, 3 May 2022 19:46:11 +0600 Subject: [PATCH] fixed windows build flow --- .github/workflows/flutter-build.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/flutter-build.yml b/.github/workflows/flutter-build.yml index 15a2ab5a..79263f3a 100644 --- a/.github/workflows/flutter-build.yml +++ b/.github/workflows/flutter-build.yml @@ -45,23 +45,28 @@ jobs: build_windows: runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - uses: actions/checkout@v3 + with: + repository: KRTirtho/flutter_distributor + ref: deb-implementation + path: build/flutter_distributor - uses: subosito/flutter-action@v2.2.0 with: cache: true - run: flutter config --enable-windows-desktop - run: flutter pub get - run: dart bin/create-secrets.dart '${{ secrets.LYRICS_SECRET }}' '${{ secrets.SPOTIFY_SECRET }}' - - run: flutter build windows + - run: choco install innosetup -y + - run: dart pub global activate melos + - run: cd build/flutter_distributor && melos bootstrap && cd ../.. - run: ls build/windows/runner/Release - - run: choco install make -y - - run: make innoinstall - - run: make inno - - uses: actions/upload-artifact@v2 + - run: dart build/flutter_distributor/packages/flutter_distributor/bin/main.dart package --platform=windows --targets=exe --skip-clean + - uses: actions/upload-artifact@v3 with: name: Spotube-Windows-Bundle path: | - build/installer/Spotube-windows-x86_64-setup.exe + dist/**/*.exe build_macos: runs-on: macos-11 steps: