1 parent cd7b128 commit cb40eb5Copy full SHA for cb40eb5
1 file changed
.github/workflows/release.yml
@@ -47,7 +47,12 @@ jobs:
47
GOOS: ${{ matrix.goos }}
48
GOARCH: ${{ matrix.goarch }}
49
CGO_ENABLED: 1
50
- run: go build -ldflags "-s -w" -o klip-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.ext }} ./cmd/klip
+ run: |
51
+ LDFLAGS="-s -w"
52
+ if [ "${{ matrix.goos }}" = "windows" ]; then
53
+ LDFLAGS="$LDFLAGS -H windowsgui"
54
+ fi
55
+ go build -ldflags "$LDFLAGS" -o klip-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.ext }} ./cmd/klip
56
57
- name: Package (Windows)
58
if: matrix.goos == 'windows'
0 commit comments