mirror of
https://github.com/lejianwen/rustdesk-api.git
synced 2025-09-15 14:28:34 +08:00
fix(build): add start.bat to run on windows(#89)
This commit is contained in:
parent
5082ab1893
commit
c7d44cc253
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -101,6 +101,8 @@ jobs:
|
||||
if [ "${{ matrix.job.goos }}" = "windows" ]; then
|
||||
sudo apt-get install gcc-mingw-w64-x86-64 zip -y
|
||||
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
|
||||
echo @echo off > release/start.bat
|
||||
echo cmd /c \"%~dp0apimain.exe\" >> release/start.bat
|
||||
zip -r ${{ matrix.job.goos}}-${{ matrix.job.platform }}.${{matrix.job.file_ext}} ./release
|
||||
else
|
||||
if [ "${{ matrix.job.platform }}" = "arm64" ]; then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user