From ccf8f5b4c16023bdc5ec2fc0ec492aae3aa32373 Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Tue, 18 Jun 2024 21:23:29 -0400 Subject: [PATCH] Update build-windows.yml --- .github/workflows/build-windows.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 22b35b6..134d2b0 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -24,12 +24,12 @@ jobs: - name: Install dependencies run: | cd src - go mod download + go mod download -v - name: Build run: | cd src - go build -ldflags="-s -w -H=windowsgui -extldflags=-static" -o out.exe Picocrypt.go + go build -v -ldflags="-s -w -H=windowsgui -extldflags=-static" -o out.exe Picocrypt.go env: CGO_ENABLED: 1 @@ -40,8 +40,10 @@ jobs: Expand-Archive -DestinationPath reshacker_setup reshacker_setup.zip reshacker_setup/reshacker_setup.exe /SILENT Start-Sleep -Seconds 20 - Start-Process -NoNewWindow -FilePath "$Env:P" -ArgumentList "-open out.exe -save new.exe -action add -res images/key.ico -mask ICONGROUP,MAINICON," + # Invoke-Expression "& `"$Env:P`" -open out.exe -save new.exe -action add -res images/key.ico -mask ICONGROUP,MAINICON," + Start-Process -NoNewWindow -FilePath "$Env:P" -ArgumentList "-open out.exe -save new.exe -action add -res images/key.ico -mask ICONGROUP,MAINICON, -log CON" Start-Sleep -Seconds 10 + ls ren new.exe Picocrypt.exe env: P: "C:\\Program Files (x86)\\Resource Hacker\\ResourceHacker.exe"