From 8e20d7d4ad3c931b4edb55e6f99178952a7b81af Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Tue, 18 Jun 2024 20:36:08 -0400 Subject: [PATCH] Update build-windows.yml --- .github/workflows/build-windows.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) 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