add installer
This commit is contained in:
parent
c048aee833
commit
9c99aabf29
2 changed files with 13 additions and 6 deletions
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: "Build Windows EXE"
|
||||
name: "Build Windows Installer"
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
|
@ -20,15 +20,21 @@ jobs:
|
|||
targets: "x86_64-pc-windows-msvc"
|
||||
|
||||
- name: "Install Flutter dependencies"
|
||||
run: "flutter pub get"
|
||||
run: flutter pub get
|
||||
|
||||
- name: "Build Windows EXE"
|
||||
- name: "Run build_runner & build Windows EXE"
|
||||
run: |
|
||||
flutter pub run build_runner build --delete-conflicting-outputs
|
||||
flutter build windows --release
|
||||
|
||||
- name: "Upload Windows build"
|
||||
- name: "Install Inno Setup"
|
||||
run: choco install innosetup -y
|
||||
|
||||
- name: "Build Inno Setup installer"
|
||||
run: iscc installer.iss
|
||||
|
||||
- name: "Upload installer artifact"
|
||||
uses: "actions/upload-artifact@v4"
|
||||
with:
|
||||
name: "windows-exe"
|
||||
path: "build/windows/x64/runner/Release/nexus.exe"
|
||||
name: "windows-installer"
|
||||
path: "dist/*.exe"
|
||||
|
|
|
|||
1
installer.iss
Normal file
1
installer.iss
Normal file
|
|
@ -0,0 +1 @@
|
|||
Source: "build\windows\x64\runner\Release\*"; DestDir: "{app}"; Flags: recursesubdirs ignoreversion
|
||||
Loading…
Add table
Add a link
Reference in a new issue