Update build-windows.yml

This commit is contained in:
Evan Su 2024-06-18 21:23:29 -04:00 committed by GitHub
parent c5e8435233
commit ccf8f5b4c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,12 +24,12 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
cd src cd src
go mod download go mod download -v
- name: Build - name: Build
run: | run: |
cd src cd src
go build -ldflags="-s -w -H=windowsgui -extldflags=-static" -o out.exe Picocrypt.go go build -v -ldflags="-s -w -H=windowsgui -extldflags=-static" -o out.exe Picocrypt.go
env: env:
CGO_ENABLED: 1 CGO_ENABLED: 1
@ -40,8 +40,10 @@ jobs:
Expand-Archive -DestinationPath reshacker_setup reshacker_setup.zip Expand-Archive -DestinationPath reshacker_setup reshacker_setup.zip
reshacker_setup/reshacker_setup.exe /SILENT reshacker_setup/reshacker_setup.exe /SILENT
Start-Sleep -Seconds 20 Start-Sleep -Seconds 20
Start-Process -NoNewWindow -FilePath "$Env:P" -ArgumentList "-open out.exe -save new.exe -action add -res images/key.ico -mask ICONGROUP,MAINICON," # Invoke-Expression "& `"$Env:P`" -open out.exe -save new.exe -action add -res images/key.ico -mask ICONGROUP,MAINICON,"
Start-Process -NoNewWindow -FilePath "$Env:P" -ArgumentList "-open out.exe -save new.exe -action add -res images/key.ico -mask ICONGROUP,MAINICON, -log CON"
Start-Sleep -Seconds 10 Start-Sleep -Seconds 10
ls
ren new.exe Picocrypt.exe ren new.exe Picocrypt.exe
env: env:
P: "C:\\Program Files (x86)\\Resource Hacker\\ResourceHacker.exe" P: "C:\\Program Files (x86)\\Resource Hacker\\ResourceHacker.exe"