Skip to content

Commit

Permalink
Last try with variables
Browse files Browse the repository at this point in the history
  • Loading branch information
neilenns committed Dec 7, 2023
1 parent f4be749 commit 8ac0ce5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@ jobs:

- name: Downgrade NSIS
shell: pwsh
run: .\Build\downgrade_nsis.ps1

- name: Verify makensis version
run: makensis.exe /VERSION
run: |
.\Build\downgrade_nsis.ps1
makensis.exe /VERSION
- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
Expand Down
3 changes: 2 additions & 1 deletion Build/downgrade_nsis.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
## Desc: Install NSIS
################################################################################

Invoke-WebRequest "https://netcologne.dl.sourceforge.net/project/nsis/NSIS%203/3.04/nsis-3.04-setup.exe" -OutFile "C:\WINDOWS\Temp\nsis-3.04-setup.exe"
$NsisVersion = "3.04"
Invoke-WebRequest "https://netcologne.dl.sourceforge.net/project/nsis/NSIS%203/${NsisVersion}/nsis-${NsisVersion}-setup.exe" -OutFile "C:\WINDOWS\Temp\nsis-${NsisVersion}-setup.exe"
Invoke-Expression "& C:\WINDOWS\Temp\nsis-3.04-setup.exe /S"

$NsisPath = "${env:ProgramFiles(x86)}\NSIS\"
Expand Down

0 comments on commit 8ac0ce5

Please sign in to comment.