diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 7f27984b8..e4a8995a0 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -12,10 +12,9 @@ on: required: true type: string jobs: - # TODO: note that we currently only upload the .exe file, which is not - # sufficient for a proper Windows release. See the documentation - # for what would be necessary (low priority, but nice to have): - # https://docs.flutter.dev/platform-integration/windows/building + # TODO: we currently upload the release folder as a ZIP, which works as a + # portable version. For a proper installer (e.g. via Inno Setup or MSIX), + # see: https://docs.flutter.dev/platform-integration/windows/building build_windows: name: Windows runs-on: windows-latest @@ -31,7 +30,10 @@ jobs: - name: Build .exe run: flutter build windows --release + - name: Package release + run: Compress-Archive -Path build\windows\x64\runner\Release\* -DestinationPath windows-x64.zip + - uses: actions/upload-artifact@v7 with: name: builds-windows - path: build\windows\x64\runner\Release\wger.exe \ No newline at end of file + path: windows-x64.zip \ No newline at end of file diff --git a/.github/workflows/make-release.yml b/.github/workflows/make-release.yml index 1fb0d9c30..af4acaed0 100644 --- a/.github/workflows/make-release.yml +++ b/.github/workflows/make-release.yml @@ -148,6 +148,6 @@ jobs: builds-ios/Runner.app.zip builds-ipa/Runner.xcarchive.zip builds-macos/wger.app.zip - builds-windows/wger.exe + builds-windows/windows-x64.zip