feature(Windows): Windows installer (#222)

This commit is contained in:
Bailey 2025-02-16 00:02:40 +10:30 committed by GitHub
parent 1970d7e749
commit 861e056986
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 190 additions and 7 deletions

View file

@ -128,19 +128,33 @@ jobs:
cache: true
cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" # optional, change this to force refresh cache
cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path
- name: Get dependencies
run: flutter pub get
- name: Build Windows EXE
run: flutter build windows --build-number=${{ github.run_number }}
- name: Archive Windows artifact
- name: Compile Inno Setup installer
uses: Minionguyjpro/Inno-Setup-Action@v1.2.2
with:
path: windows/windows_setup.iss
options: /O+
env:
FLADDER_VERSION: ${{needs.fetch-info.outputs.version_name}}
- name: Archive Windows portable artifact
uses: actions/upload-artifact@v4.0.0
with:
name: fladder-windows
name: fladder-windows-portable
path: build\windows\x64\runner\Release\
- name: Archive Windows installer artifact
uses: actions/upload-artifact@v4.0.0
with:
name: fladder-windows-installer
path: windows\Output\fladder_setup.exe
build-ios:
runs-on: macos-latest
needs: [fetch-info]
@ -360,15 +374,26 @@ jobs:
mv fladder-android/release-signed.apk Fladder-Android-${{needs.fetch-info.outputs.version_name}}.apk
mv fladder-android/release-signed.aab Fladder-Android-${{needs.fetch-info.outputs.version_name}}.aab
- name: Download Artifacts Windows
- name: Download Windows portable artifact
uses: actions/download-artifact@v4
with:
name: fladder-windows
path: fladder-windows
name: fladder-windows-portable
path: fladder-windows-portable
- name: Download Windows installer artifact
uses: actions/download-artifact@v4
with:
name: fladder-windows-installer
path: fladder-windows-installer
- name: Rename Windows installer
run: |
cd fladder-windows-installer
ren fladder_setup.exe Fladder-Windows-${{needs.fetch-info.outputs.version_name}}-Setup.exe
- name: Compress Windows
run: |
cd fladder-windows
cd fladder-windows-portable
zip -r ../Fladder-Windows-${{needs.fetch-info.outputs.version_name}}.zip .
- name: Download Artifacts iOS
@ -428,9 +453,11 @@ jobs:
generate_release_notes: true
files: |
Fladder-Android-${{needs.fetch-info.outputs.version_name}}.apk
Fladder-Windows-${{needs.fetch-info.outputs.version_name}}-Setup.exe
Fladder-Windows-${{needs.fetch-info.outputs.version_name}}.zip
Fladder-iOS-${{needs.fetch-info.outputs.version_name}}.ipa
Fladder-macOS-${{needs.fetch-info.outputs.version_name}}.dmg
Fladder-Web-${{needs.fetch-info.outputs.version_name}}.zip
Fladder-Linux-${{needs.fetch-info.outputs.version_name}}.zip
Fladder-Linux-${{needs.fetch-info.outputs.version_name}}.flatpak