mirror of
https://gitee.com/goploy/goploy.git
synced 2024-12-02 04:07:33 +08:00
23 lines
310 B
Batchfile
23 lines
310 B
Batchfile
if %1 == with-web (
|
|
cd web
|
|
|
|
call npm run build
|
|
|
|
cd ..
|
|
)
|
|
|
|
::go build linux
|
|
SET GOOS=linux
|
|
SET GOARCH=amd64
|
|
go build -o goploy main.go
|
|
|
|
::go build mac
|
|
SET GOOS=darwin
|
|
SET GOARCH=amd64
|
|
go build -o goploy.mac main.go
|
|
|
|
::go build windows
|
|
SET GOOS=windows
|
|
SET GOARCH=amd64
|
|
go build -o goploy.exe main.go
|