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