From e005cbd356a4df955ee4a80ce059cb4506ab335f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kr=C3=BCger?= Date: Tue, 8 Jul 2025 20:48:48 +0200 Subject: [PATCH] feat: add resource file generation for Windows build --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 540a79f..8149c4e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,13 @@ jobs: git commit -m "Updated ./main.go" git push origin HEAD:${{ github.event.release.target_commitish }} + - name: Install rsrc (for embedding icon) + run: go install github.com/akavel/rsrc@latest + + - name: Generate Windows resource file with icon + run: | + $HOME/go/bin/rsrc -ico icon_active.ico -o resource_windows.syso + - name: Build AutoExitNode for windows amd64 run: | GOOS=windows GOARCH=amd64 go build -ldflags="-H windowsgui" -o AutoExitNode.exe