From 275bd0fb25322bbff3e1e5229554566a48417218 Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Tue, 18 Jun 2024 20:54:40 -0400 Subject: [PATCH] Update build-windows.yml --- .github/workflows/build-windows.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 7cbcec9..d25aff0 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -29,7 +29,7 @@ jobs: - name: Build run: | cd src - go build -ldflags="-s -w -H=windowsgui -extldflags=-static" Picocrypt.go + go build -ldflags="-s -w -H=windowsgui -extldflags=-static" -o out.exe Picocrypt.go env: CGO_ENABLED: 1 @@ -39,12 +39,12 @@ jobs: 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 - & "$env:RH" -open Picocrypt.exe -save new.exe -action add -res images/key.ico -mask ICONGROUP,MAINICON, + Start-Process -NoNewWindow -FilePath "%P%" -ArgumentList "-open out.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 env: - RH: "C:\\Program Files (x86)\\Resource Hacker\\ResourceHacker.exe" + P: "C:\\Program Files (x86)\\Resource Hacker\\ResourceHacker.exe" - name: Compress with upx shell: pwsh