From 9c99aabf293448fb30aa190696289dc07ff5005a Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Thu, 8 Jan 2026 11:38:29 -0500 Subject: [PATCH] add installer --- .github/workflows/main.yml | 18 ++++++++++++------ installer.iss | 1 + 2 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 installer.iss diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 46e05cd..d9fce5f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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" \ No newline at end of file + name: "windows-installer" + path: "dist/*.exe" diff --git a/installer.iss b/installer.iss new file mode 100644 index 0000000..a3e7990 --- /dev/null +++ b/installer.iss @@ -0,0 +1 @@ +Source: "build\windows\x64\runner\Release\*"; DestDir: "{app}"; Flags: recursesubdirs ignoreversion