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
9fe7590ae2
commit
8e20d7d4ad
1 changed files with 11 additions and 7 deletions
18
.github/workflows/build-windows.yml
vendored
18
.github/workflows/build-windows.yml
vendored
|
@ -33,17 +33,21 @@ jobs:
|
|||
env:
|
||||
CGO_ENABLED: 1
|
||||
|
||||
# - name: Add icon and manifest
|
||||
# shell: pwsh
|
||||
# run: |
|
||||
# Invoke-WebRequest https://www.angusj.com/resourcehacker/reshacker_setup.exe
|
||||
# reshacker_setup.exe /SILENT
|
||||
# rh
|
||||
- name: Add icon and manifest
|
||||
shell: pwsh
|
||||
run: |
|
||||
Invoke-WebRequest -OutFile reshacker_setup.zip https://github.com/user-attachments/files/15893917/reshacker_setup.zip
|
||||
Expand-Archive -DestinationPath reshacker_setup reshacker_setup.zip
|
||||
reshacker_setup/reshacker_setup.exe /SILENT
|
||||
"C:\Program Files (x86)\Resource Hacker\ResourceHacker.exe" -open Picocrypt.exe -save new.exe -action add -res images/key.ico -mask ICONGROUP,MAINICON,
|
||||
Start-Sleep -Seconds 10
|
||||
del Picocrypt.exe
|
||||
mv new.exe Picocrypt.exe
|
||||
|
||||
- name: Compress with upx
|
||||
shell: pwsh
|
||||
run: |
|
||||
Invoke-WebRequest https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-win64.zip -OutFile upx.zip
|
||||
Invoke-WebRequest -OutFile upx.zip https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-win64.zip
|
||||
Expand-Archive upx.zip -DestinationPath upx
|
||||
upx/upx-4.2.4-win64/upx.exe --lzma --brute src/Picocrypt.exe
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue