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"