mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 13:38:13 -08:00
feature(Windows): Windows installer (#222)
This commit is contained in:
parent
1970d7e749
commit
861e056986
8 changed files with 190 additions and 7 deletions
41
.github/workflows/build.yml
vendored
41
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue