Skip to content

Commit 7d3f2cf

Browse files
authored
Install upgraded NSIS 3.11 on Windows 2025 (#2785)
Signed-off-by: Chad Wilson <29788154+chadlwilson@users.noreply.github.com>
1 parent e8c09b1 commit 7d3f2cf

4 files changed

Lines changed: 24 additions & 16 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,22 @@ jobs:
4242
check-latest: true
4343
go-version-file: 'go.mod'
4444

45-
- name: Prep installer generation
46-
shell: powershell
47-
run: |
48-
Start-Sleep -Milliseconds 1
49-
Invoke-WebRequest "https://sourceforge.net/projects/nsis/files/NSIS%203/3.10/nsis-3.10-strlen_8192.zip/download" -UserAgent "PowerShell" -Outfile "./nsis.zip"
50-
Expand-Archive -Force -LiteralPath ./nsis.zip -DestinationPath "C:\Program Files (x86)\NSIS\"
51-
5245
- name: Compile gauge
5346
run: |
5447
go run build/make.go --verbose --all-platforms
5548
Get-ChildItem -Recurse .\bin
5649
50+
- name: Install NSIS
51+
env:
52+
NSIS_VERSION: '3.11'
53+
run: |
54+
Invoke-WebRequest "https://sourceforge.net/projects/nsis/files/NSIS%203/${env:NSIS_VERSION}/nsis-${env:NSIS_VERSION}.zip/download" -UserAgent "PowerShell" -Outfile "./nsis.zip"
55+
Expand-Archive -LiteralPath ./nsis.zip -DestinationPath "${env:ProgramFiles(x86)}\"
56+
Invoke-WebRequest "https://sourceforge.net/projects/nsis/files/NSIS%203/${env:NSIS_VERSION}/nsis-${env:NSIS_VERSION}-strlen_8192.zip/download" -UserAgent "PowerShell" -Outfile "./nsis-8192.zip"
57+
Expand-Archive -Force -LiteralPath ./nsis-8192.zip -DestinationPath "${env:ProgramFiles(x86)}\nsis-${env:NSIS_VERSION}\"
58+
echo "${env:ProgramFiles(x86)}\nsis-${env:NSIS_VERSION}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
59+
5760
- name: Create Distro
58-
shell: pwsh
5961
run: |
6062
go run build/make.go --distro --bin-dir bin\windows_amd64
6163
go run build/make.go --distro --bin-dir bin\windows_386
@@ -232,7 +234,6 @@ jobs:
232234
git clone https://github.com/getgauge/chocolatey-packages
233235
234236
- name: Deploy to Gauge $GAUGE_VERSION to choco
235-
shell: pwsh
236237
env:
237238
API_KEY: ${{ secrets.NUGET_API_KEY }}
238239
run: |

.github/workflows/tests.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ jobs:
177177
run: |
178178
cd gauge-tests
179179
.\gradlew.bat clean jsFT
180-
shell: pwsh
181180
182181
- name: Install gauge and Run FTs (linux/osx)
183182
if: matrix.os != 'windows-latest'
@@ -202,11 +201,24 @@ jobs:
202201

203202
steps:
204203
- uses: actions/checkout@v5
204+
205205
- name: Set up Go
206206
uses: actions/setup-go@v6
207207
with:
208208
check-latest: true
209209
go-version-file: 'go.mod'
210+
211+
- name: Install NSIS (windows)
212+
if: matrix.os == 'windows-latest'
213+
env:
214+
NSIS_VERSION: '3.11'
215+
run: |
216+
Invoke-WebRequest "https://sourceforge.net/projects/nsis/files/NSIS%203/${env:NSIS_VERSION}/nsis-${env:NSIS_VERSION}.zip/download" -UserAgent "PowerShell" -Outfile "./nsis.zip"
217+
Expand-Archive -LiteralPath ./nsis.zip -DestinationPath "${env:ProgramFiles(x86)}\"
218+
Invoke-WebRequest "https://sourceforge.net/projects/nsis/files/NSIS%203/${env:NSIS_VERSION}/nsis-${env:NSIS_VERSION}-strlen_8192.zip/download" -UserAgent "PowerShell" -Outfile "./nsis-8192.zip"
219+
Expand-Archive -Force -LiteralPath ./nsis-8192.zip -DestinationPath "${env:ProgramFiles(x86)}\nsis-${env:NSIS_VERSION}\"
220+
echo "${env:ProgramFiles(x86)}\nsis-${env:NSIS_VERSION}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
221+
210222
- name: Build distro for ${{ matrix.os }}
211223
run: go run build/make.go && go run build/make.go --distro
212224

build/install/windows/gauge-install.nsi

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,9 @@
1515
!define MUI_FINISHPAGE_LINK_LOCATION "https://docs.gauge.org"
1616
!define MUI_FINISHPAGE_NOAUTOCLOSE
1717
!define MUI_COMPONENTSPAGE_TEXT_COMPLIST "Additional plugins can be installed using the command 'gauge install <plugin>'"
18-
; MUI 1.67 compatible ------
19-
!include "MUI.nsh"
2018
!include "MUI2.nsh"
2119
!include "x64.nsh"
2220
!include "winmessages.nsh"
23-
!include "FileFunc.nsh" ;For GetOptions
24-
!include "WordFunc.nsh"
25-
!include "nsDialogs.nsh"
2621

2722
!define Explode "!insertmacro Explode"
2823

version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
)
1515

1616
// CurrentGaugeVersion represents the current version of Gauge
17-
var CurrentGaugeVersion = &Version{1, 6, 20}
17+
var CurrentGaugeVersion = &Version{1, 6, 21}
1818

1919
// BuildMetadata represents build information of current release (e.g, nightly build information)
2020
var BuildMetadata = ""

0 commit comments

Comments
 (0)