Use NSIS portable zip instead of installer (corrupted download fix)

This commit is contained in:
Krystie
2026-04-02 22:57:45 -07:00
parent 7120df3989
commit f0a2c0e237
+5 -5
View File
@@ -142,11 +142,11 @@ jobs:
- name: Build NSIS installer
shell: powershell
run: |
# Download NSIS directly (no Chocolatey dependency)
$NSIS_URL = "https://sourceforge.net/projects/nsis/files/NSIS%203/3.10/nsis-3.10-setup.exe/download"
Invoke-WebRequest -Uri $NSIS_URL -OutFile nsis-setup.exe -MaximumRedirection 5
Start-Process -FilePath .\nsis-setup.exe -ArgumentList '/S' -Wait
$env:PATH = "C:\Program Files (x86)\NSIS;$env:PATH"
# Download NSIS portable zip (no installer needed, no Chocolatey)
$NSIS_URL = "https://sourceforge.net/projects/nsis/files/NSIS%203/3.10/nsis-3.10.zip/download"
Invoke-WebRequest -Uri $NSIS_URL -OutFile nsis.zip -MaximumRedirection 10
Expand-Archive -Path nsis.zip -DestinationPath nsis-portable
$env:PATH = "$PWD\nsis-portable\nsis-3.10;$env:PATH"
makensis /DVERSION=$env:VERSION contrib\nsis\setup.nsi
- name: Upload installer