diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index a8e6965..74275d4 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -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