Skip to content

Commit fe9bf40

Browse files
committed
test 19
1 parent fbe5ab0 commit fe9bf40

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

.github/workflows/windows_installer.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,33 @@ jobs:
2929
run: |
3030
pip install meson
3131
32-
- name: Install NSIS with EnVar plugin
33-
uses: Totto16/install-nsis@b60b16380f74e6047cb569aecb13a0b78918929b
34-
with:
35-
nsis-version: '3.11'
32+
# - name: Install NSIS with EnVar plugin
33+
# uses: Totto16/install-nsis@2cdf87622e707cbd65a5732b24ceed2674423adf
34+
# with:
35+
# nsis-version: '3.10'
36+
37+
- name: Test 1
38+
run: |
39+
echo "C:\Program Files (x86)\NSIS\Bin" | Out-File -FilePath $env:GITHUB_PATH -Append
40+
echo "C:\Program Files (x86)\NSIS" | Out-File -FilePath $env:GITHUB_PATH -Append
41+
Write-Host "Current PATH:"
42+
Write-Host $env:PATH
43+
Invoke-WebRequest https://deac-riga.dl.sourceforge.net/project/nsis/NSIS%203/3.10/nsis-3.10-setup.exe?viasf=1 -OutFile C:\WINDOWS\Temp\nsis-3.10-setup.exe
44+
Get-Item C:\WINDOWS\Temp\nsis-3.10-setup.exe | Format-List
45+
$process = Start-Process "C:\WINDOWS\Temp\nsis-3.10-setup.exe" -ArgumentList "\S" -Wait -PassThru
46+
$exitCode = $process.ExitCode
47+
if ($exitCode -eq 0) {
48+
Write-Host "Installer ran successfully."
49+
} else {
50+
Write-Host "Installer failed with exit code $exitCode."
51+
exit $exitCode
52+
}
53+
54+
- name: Test 2
55+
run: |
56+
Get-ChildItem -Path "C:\Program Files (x86)\NSIS" -Recurse | Format-Table FullName
57+
Get-Command makensis
58+
Get-Command makensis.EXE
3659
3760
- name: Configure
3861
run: meson setup build -Dbuildtype=release -Ddefault_library=shared -Dbuild_installer=true -Drun_in_ci=true

0 commit comments

Comments
 (0)