Update build-windows.yml

This commit is contained in:
Evan Su 2024-06-18 20:36:08 -04:00 committed by GitHub
parent 9fe7590ae2
commit 8e20d7d4ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,17 +33,21 @@ jobs:
env: env:
CGO_ENABLED: 1 CGO_ENABLED: 1
# - name: Add icon and manifest - name: Add icon and manifest
# shell: pwsh shell: pwsh
# run: | run: |
# Invoke-WebRequest https://www.angusj.com/resourcehacker/reshacker_setup.exe Invoke-WebRequest -OutFile reshacker_setup.zip https://github.com/user-attachments/files/15893917/reshacker_setup.zip
# reshacker_setup.exe /SILENT Expand-Archive -DestinationPath reshacker_setup reshacker_setup.zip
# rh 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 - name: Compress with upx
shell: pwsh shell: pwsh
run: | 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 Expand-Archive upx.zip -DestinationPath upx
upx/upx-4.2.4-win64/upx.exe --lzma --brute src/Picocrypt.exe upx/upx-4.2.4-win64/upx.exe --lzma --brute src/Picocrypt.exe