Commit 450a0cfd34
Unsigned
Layout: unified · split
.github/workflows/ci-cd.yml +4 −2
| @@ -107,8 +107,10 @@ jobs: | ||
| 107 | 107 | |
| 108 | 108 | - name: Update Inno Setup Script with New Version |
| 109 | 109 | run: | |
| 110 | sed -i "s/AppVersion=.*/AppVersion=${{ steps.bump_version.outputs.new_version }}/" Build/curd-windows-build.iss | |
| 111 | ||
| 110 | $new_version = Get-Content VERSION.txt | |
| 111 | $iss_path = "Build/curd-windows-build.iss" | |
| 112 | (Get-Content $iss_path) -replace "AppVersion=.*", "AppVersion=$new_version" | Set-Content $iss_path | |
| 113 | ||
| 112 | 114 | - name: Create Windows Installer |
| 113 | 115 | run: | |
| 114 | 116 | & "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "D:\a\curd\curd\Build\curd-windows-build.iss" |
Build/buildwindows +2 −1
| @@ -1,4 +1,5 @@ | ||
| 1 | 1 | @echo off |
| 2 | 2 | set GOOS=windows |
| 3 | 3 | set GOARCH=amd64 |
| 4 | go build -o curd.exe -ldflags="-s -w" -trimpath cmd\curd\main.go | |
| \ No newline at end of file | ||
| 4 | go build -o curd.exe -ldflags="-s -w" -trimpath cmd\curd\main.go | |
| 5 | tree /F | |
| \ No newline at end of file | ||