fix: modernize windows installer with Inno Setup (#867)
Build Snapshot Release / build (push) Has been cancelled
Release Please / release-please (push) Has been cancelled
Test / test-nix (push) Has been cancelled
Test / test-win (push) Has been cancelled
Build Snapshot Release / Windows installers (push) Has been cancelled
Update Restic / update-restic-version (push) Has been cancelled

This commit is contained in:
Andrew H.
2025-08-21 01:11:52 -05:00
committed by GitHub
parent a967832731
commit dc481e55c8
3 changed files with 384 additions and 312 deletions
+32 -9
View File
@@ -55,13 +55,36 @@ jobs:
dist/*.tar.gz
dist/*.zip
- name: Generate Installers
run: |
mkdir -p dist-installers
./scripts/generate-installers.sh ./dist-installers
installer:
name: Windows installers
needs: [ build ]
runs-on: windows-2022
- name: Upload Installers
uses: actions/upload-artifact@v4
with:
name: backrest-snapshot-installers
path: dist-installers/*.exe
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: backrest-snapshot-builds
- name: Unzip artifacts and compile Inno Setup installers
shell: powershell
run: |
mkdir windows_installers
foreach ($arch in "x86_64", "arm64") {
$src = "backrest_Windows_$arch"
Expand-Archive ".\${src}.zip"
cp build\windows\* $src
& "c:\Program Files (x86)\Inno Setup 6\ISCC.exe" /DArch=$arch ${src}\installer.iss
cp "$src\Output\*" windows_installers
}
- name: Upload installers
uses: actions/upload-artifact@v4
with:
name: backrest-snapshot-installers
path: windows_installers\*.exe