File tree Expand file tree Collapse file tree 3 files changed +24
-14
lines changed
Expand file tree Collapse file tree 3 files changed +24
-14
lines changed Original file line number Diff line number Diff line change 2424 - uses : actions/checkout@v5
2525 with :
2626 submodules : recursive
27+
28+ - name : Install NSIS
29+ uses :
repolevedavaj/[email protected] 30+ with :
31+ nsis-version : ' 3.10'
2732
2833 - name : Set up Go
2934 uses : actions/setup-go@v6
@@ -48,12 +53,16 @@ jobs:
4853 run : |
4954 $env:PATH += ";D:\a\txlogger\txlogger\llvm-mingw\bin"
5055 $env:PATH
51- .\build.ps1 -cangateway -txlogger
56+ .\build.ps1 -cangateway -txlogger -setup
5257
5358 - name : Creating Zip
5459 if : startsWith(github.ref, 'refs/tags/')
5560 run : 7z a txlogger.zip txlogger.exe cangateway.exe .\debug.bat C:\Progra~2\Kvaser\Canlib\Bin\canlib32.dll .\vcpkg\packages\libusb_x64-windows\bin\libusb-1.0.dll .\canusb\dll64\canusbdrv64.dll
5661
62+ - name : Creating Setup Zip
63+ if : startsWith(github.ref, 'refs/tags/')
64+ run : 7z a txlogger-setup.zip txlogger_setup.exe
65+
5766 - name : Release
5867 uses : softprops/action-gh-release@v2
5968 if : github.ref_type == 'tag'
Original file line number Diff line number Diff line change @@ -86,19 +86,6 @@ if ($txlogger) {
8686
8787if ($setup ) {
8888 Write-Host " Building txlogger_setup.exe"
89-
9089 $ifpPath = (Get-Location ).Path + " \setup\setup.nsi"
9190 Start-Process - FilePath " C:\Program Files (x86)\NSIS\makensis.exe" - ArgumentList $ifpPath - WorkingDirectory (Get-Location ).Path - NoNewWindow - Wait
92-
93- if (-not (Test-Path " txlogger_setup.exe" )) {
94- Write-Host " txlogger_setup.exe not found. Exiting."
95- exit
96- }
97-
98- $filesToAdd = " txlogger_setup.exe"
99- $outputZip = " dist\setup.zip"
100- $winRarArgs = " a -m5 -afzip $outputZip $filesToAdd "
101-
102- Write-Output " Creating setup.zip"
103- Start-Process - FilePath $winRarExe - ArgumentList $winRarArgs - NoNewWindow - Wait
10491}
Original file line number Diff line number Diff line change @@ -47,6 +47,20 @@ Write-Output "Creating $outputZip"
4747$winRarArgs = " a -ep -m5 -afzip $outputZip $ ( $files -join ' ' ) "
4848Start-Process - FilePath $winrarExe - ArgumentList $winRarArgs - NoNewWindow - Wait
4949
50+
51+ if (-not (Test-Path " txlogger_setup.exe" )) {
52+ Write-Host " txlogger_setup.exe not found. Exiting."
53+ exit
54+ }
55+ if (-not ($beta )) {
56+ $filesToAdd = " txlogger_setup.exe"
57+ $outputZip = " dist\setup.zip"
58+ $winRarArgs = " a -m5 -afzip $outputZip $filesToAdd "
59+
60+ Write-Output " Creating setup.zip"
61+ Start-Process - FilePath $winRarExe - ArgumentList $winRarArgs - NoNewWindow - Wait
62+ }
63+
5064if ($beta ) {
5165 scp dist\txlogger_beta.zip roffe@192.168.2.177 :/ var / www/ html/ txlogger
5266}
You can’t perform that action at this time.
0 commit comments