mirror of
https://github.com/Picocrypt/Picocrypt.git
synced 2025-06-28 06:06:13 +02:00
Update build-windows.yml
This commit is contained in:
parent
c5e8435233
commit
ccf8f5b4c1
1 changed files with 5 additions and 3 deletions
8
.github/workflows/build-windows.yml
vendored
8
.github/workflows/build-windows.yml
vendored
|
@ -24,12 +24,12 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: |
|
||||
cd src
|
||||
go mod download
|
||||
go mod download -v
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
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:
|
||||
CGO_ENABLED: 1
|
||||
|
||||
|
@ -40,8 +40,10 @@ jobs:
|
|||
Expand-Archive -DestinationPath reshacker_setup reshacker_setup.zip
|
||||
reshacker_setup/reshacker_setup.exe /SILENT
|
||||
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
|
||||
ls
|
||||
ren new.exe Picocrypt.exe
|
||||
env:
|
||||
P: "C:\\Program Files (x86)\\Resource Hacker\\ResourceHacker.exe"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue