Update build-windows.yml

This commit is contained in:
Evan Su 2024-06-17 23:22:02 -04:00 committed by GitHub
parent b1ef128253
commit 958f1b9d79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,10 +32,22 @@ jobs:
env:
CGO_ENABLED: 1
- name: Add icon and manifest
run: |
wget https://www.angusj.com/resourcehacker/reshacker_setup.exe
reshacker_setup.exe /SILENT
rh
- name: Compress with upx
run: |
wget https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-win64.zip
Expand-Archive upx-4.2.4-win64.zip -DestinationPath upx
upx/upx-4.2.4-win64/upx.exe --lzma --brute src/Picocrypt.exe
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: build-windows
path: Picocrypt.exe
path: src/Picocrypt.exe
if-no-files-found: error
compression-level: 9