From f0a2c0e237cb7a414c30fcc35f7c76c3840f4dc0 Mon Sep 17 00:00:00 2001 From: Krystie Date: Thu, 2 Apr 2026 22:57:45 -0700 Subject: [PATCH] Use NSIS portable zip instead of installer (corrupted download fix) --- .github/workflows/build-all.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-all.yml b/.github/workflows/build-all.yml index 6ae0ab0..3042053 100644 --- a/.github/workflows/build-all.yml +++ b/.github/workflows/build-all.yml @@ -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