mirror of
https://github.com/Picocrypt/Picocrypt.git
synced 2025-05-12 21:58:31 +02:00
Update build-windows.yml
This commit is contained in:
parent
9f896a30a3
commit
275bd0fb25
1 changed files with 3 additions and 3 deletions
6
.github/workflows/build-windows.yml
vendored
6
.github/workflows/build-windows.yml
vendored
|
@ -29,7 +29,7 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cd src
|
cd src
|
||||||
go build -ldflags="-s -w -H=windowsgui -extldflags=-static" Picocrypt.go
|
go build -ldflags="-s -w -H=windowsgui -extldflags=-static" -o out.exe Picocrypt.go
|
||||||
env:
|
env:
|
||||||
CGO_ENABLED: 1
|
CGO_ENABLED: 1
|
||||||
|
|
||||||
|
@ -39,12 +39,12 @@ jobs:
|
||||||
Invoke-WebRequest -OutFile reshacker_setup.zip https://github.com/user-attachments/files/15893917/reshacker_setup.zip
|
Invoke-WebRequest -OutFile reshacker_setup.zip https://github.com/user-attachments/files/15893917/reshacker_setup.zip
|
||||||
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
|
||||||
& "$env:RH" -open Picocrypt.exe -save new.exe -action add -res images/key.ico -mask ICONGROUP,MAINICON,
|
Start-Process -NoNewWindow -FilePath "%P%" -ArgumentList "-open out.exe","-save new.exe","-action add","-res images/key.ico","-mask ICONGROUP,MAINICON,"
|
||||||
Start-Sleep -Seconds 10
|
Start-Sleep -Seconds 10
|
||||||
del Picocrypt.exe
|
del Picocrypt.exe
|
||||||
mv new.exe Picocrypt.exe
|
mv new.exe Picocrypt.exe
|
||||||
env:
|
env:
|
||||||
RH: "C:\\Program Files (x86)\\Resource Hacker\\ResourceHacker.exe"
|
P: "C:\\Program Files (x86)\\Resource Hacker\\ResourceHacker.exe"
|
||||||
|
|
||||||
- name: Compress with upx
|
- name: Compress with upx
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
Loading…
Add table
Reference in a new issue