You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/release.yml
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,12 @@ jobs:
63
63
run: task build-cli
64
64
if: matrix.operating-system == 'ubuntu-18.04'
65
65
66
+
# the manifest is required by windows GUI apps, otherwise the binary will crash with: "Unable to create main window: TTM_ADDTOOL failed" (for reference https://github.com/lxn/walk/issues/28)
67
+
# rsrc will produce a *.syso file that should get automatically recognized by go build command and linked into an executable.
68
+
- name: Download tool to embed manifest in win binary
69
+
run: go get github.com/akavel/rsrc
70
+
if: matrix.operating-system == 'windows-2019'
71
+
66
72
# building the agent for win requires a different task because of an extra flag
Copy file name to clipboardExpand all lines: .github/workflows/test.yml
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,12 @@ jobs:
58
58
run: task build-cli
59
59
if: matrix.operating-system == 'ubuntu-18.04'
60
60
61
+
# the manifest is required by windows GUI apps, otherwise the binary will crash with: "Unable to create main window: TTM_ADDTOOL failed" (for reference https://github.com/lxn/walk/issues/28)
62
+
# rsrc will produce a *.syso file that should get automatically recognized by go build command and linked into an executable.
63
+
- name: Download tool to embed manifest in win binary
64
+
run: go get github.com/akavel/rsrc
65
+
if: matrix.operating-system == 'windows-2019'
66
+
61
67
# building the agent for win requires a different task because of an extra flag
Copy file name to clipboardExpand all lines: Taskfile.yml
-3Lines changed: 0 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -21,9 +21,6 @@ tasks:
21
21
build-win:
22
22
desc: Build the project for win, to build 32bit `export GOARCH=386` and for 64 bit `export GOARCH=amd64` before `task build-win`
23
23
cmds:
24
-
# the manifest is required by windows GUI apps, otherwise the binary will crash with: "Unable to create main window: TTM_ADDTOOL failed" (for reference https://github.com/lxn/walk/issues/28)
25
-
- go get github.com/akavel/rsrc
26
-
# rsrc will produce a *.syso file that should get automatically recognized by go build command and linked into an executable.
27
24
- rsrc -arch {{.GOARCH}} -manifest manifest.xml # GOARCH shoud be either amd64 or 386
0 commit comments