Skip to content

Commit 35bd17c

Browse files
authored
Merge branch 'windows' into dev
2 parents 025b5c8 + 906789f commit 35bd17c

File tree

6 files changed

+172
-16
lines changed

6 files changed

+172
-16
lines changed

.github/workflows/release_binary.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
1-
name: Release Go Binary
1+
name: Release Windows Binary
22

33
on:
4-
release:
5-
types: [ created ]
4+
push:
5+
tags:
6+
- windows-v*
67

78
jobs:
8-
releases-matrix:
9-
name: Release Go Binary
9+
release:
10+
name: Release Windows Binary
1011
runs-on: ubuntu-latest
12+
1113
strategy:
1214
matrix:
13-
goos: [ linux, windows, darwin ]
14-
goarch: [ amd64, arm64 ]
15-
exclude:
16-
- goarch: arm64
17-
goos: windows
15+
goarch: [amd64]
16+
1817
steps:
1918
- uses: actions/checkout@v4
19+
2020
- uses: wangyoucao577/go-release-action@v1
2121
with:
2222
github_token: ${{ secrets.MY_TOKEN }}
23-
goos: ${{ matrix.goos }}
23+
goos: windows
2424
goarch: ${{ matrix.goarch }}
2525
binary_name: "deeplx"
26-
extra_files: url.txt
26+
ldflags: -H=windowsgui
27+
executable_compression: upx --best
28+
extra_files: url.txt
29+
overwrite: true

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ build-linux-arm64:
1515
@mkdir -p build
1616
@CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -gcflags "all=-N -l" -ldflags "-s -w" -o build/deeplx_linux_arm64 .
1717

18+
build-mac-arm64:
19+
@mkdir -p build
20+
@CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -gcflags "all=-N -l" -ldflags "-s -w" -o build/deeplx_mac_arm64 .
21+
22+
build-win-arm64:
23+
@mkdir -p build
24+
@CGO_ENABLED=1 GOOS=windows GOARCH=arm64 go build -gcflags "all=-N -l" -ldflags "-s -w -H windowsgui" -o build/deeplx_win_arm64.exe .
25+
26+
1827
gox-linux:
1928
gox -gcflags="all=-N -l" -ldflags "-s -w" -osarch="linux/amd64 linux/arm64" -output="build/deeplx_{{.OS}}_{{.Arch}}"
2029

go.mod

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module deeplx-local
33
go 1.22
44

55
require (
6+
github.com/getlantern/systray v1.2.2
67
github.com/gin-gonic/gin v1.10.0
78
github.com/imroc/req/v3 v3.43.7
89
github.com/samber/lo v1.39.0
@@ -18,10 +19,19 @@ require (
1819
github.com/cloudwego/base64x v0.1.4 // indirect
1920
github.com/cloudwego/iasm v0.2.0 // indirect
2021
github.com/gabriel-vasile/mimetype v1.4.4 // indirect
22+
github.com/getlantern/context v0.0.0-20220418194847-3d5e7a086201 // indirect
23+
github.com/getlantern/errors v1.0.4 // indirect
24+
github.com/getlantern/golog v0.0.0-20230503153817-8e72de7e0a65 // indirect
25+
github.com/getlantern/hex v0.0.0-20220104173244-ad7e4b9194dc // indirect
26+
github.com/getlantern/hidden v0.0.0-20220104173330-f221c5a24770 // indirect
27+
github.com/getlantern/ops v0.0.0-20231025133620-f368ab734534 // indirect
2128
github.com/gin-contrib/sse v0.1.0 // indirect
29+
github.com/go-logr/logr v1.4.1 // indirect
30+
github.com/go-logr/stdr v1.2.2 // indirect
2231
github.com/go-playground/locales v0.14.1 // indirect
2332
github.com/go-playground/universal-translator v0.18.1 // indirect
2433
github.com/go-playground/validator/v10 v10.22.0 // indirect
34+
github.com/go-stack/stack v1.8.1 // indirect
2535
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
2636
github.com/goccy/go-json v0.10.3 // indirect
2737
github.com/google/pprof v0.0.0-20240528025155-186aa0362fba // indirect
@@ -36,14 +46,20 @@ require (
3646
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
3747
github.com/modern-go/reflect2 v1.0.2 // indirect
3848
github.com/onsi/ginkgo/v2 v2.19.0 // indirect
49+
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c // indirect
3950
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
4051
github.com/quic-go/qpack v0.4.0 // indirect
4152
github.com/quic-go/quic-go v0.45.0 // indirect
4253
github.com/refraction-networking/utls v1.6.6 // indirect
4354
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
4455
github.com/ugorji/go/codec v1.2.12 // indirect
56+
go.opentelemetry.io/otel v1.26.0 // indirect
57+
go.opentelemetry.io/otel/metric v1.26.0 // indirect
58+
go.opentelemetry.io/otel/trace v1.26.0 // indirect
59+
go.uber.org/atomic v1.11.0 // indirect
4560
go.uber.org/mock v0.4.0 // indirect
4661
go.uber.org/multierr v1.11.0 // indirect
62+
go.uber.org/zap v1.27.0 // indirect
4763
golang.org/x/arch v0.8.0 // indirect
4864
golang.org/x/crypto v0.24.0 // indirect
4965
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 // indirect

0 commit comments

Comments
 (0)