|
|
@@ -101,6 +101,8 @@ jobs:
|
|
101
|
101
|
if [ "${{ matrix.job.goos }}" = "windows" ]; then
|
|
102
|
102
|
sudo apt-get install gcc-mingw-w64-x86-64 zip -y
|
|
103
|
103
|
GOOS=${{ matrix.job.goos }} GOARCH=${{ matrix.job.platform }} CC=x86_64-w64-mingw32-gcc CGO_LDFLAGS="-static" CGO_ENABLED=1 go build -ldflags "-s -w" -o ./release/apimain.exe ./cmd/apimain.go
|
|
|
104
|
+ echo @echo off > release/start.bat
|
|
|
105
|
+ echo cmd /c \"%~dp0apimain.exe\" >> release/start.bat
|
|
104
|
106
|
zip -r ${{ matrix.job.goos}}-${{ matrix.job.platform }}.${{matrix.job.file_ext}} ./release
|
|
105
|
107
|
else
|
|
106
|
108
|
if [ "${{ matrix.job.platform }}" = "arm64" ]; then
|