Update Windows build workflow to package release as a zip file

This should at least allow users to start the application
This commit is contained in:
Roland Geider
2026-04-15 12:03:39 +02:00
parent 4dc0e37906
commit 2f3674fba0
2 changed files with 8 additions and 6 deletions

View File

@@ -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
path: windows-x64.zip

View File

@@ -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