4 Star 5 Fork 0

ShonnZong / ZongGo

加入 Gitee
与超过 800 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.bat 717 Bytes
一键复制 编辑 Web IDE 原始数据 按行查看 历史
@echo off
echo=
echo Build Start!
rd /s/q %cd%\bin\
if not exist %cd%\bin\config\ md %cd%\bin\config\
xcopy /Y %cd%\config\app.env %cd%\bin\config\
if not exist %cd%\bin\resources\ md %cd%\bin\resources\
xcopy /Y /S %cd%\resources %cd%\bin\resources\
xcopy /Y %cd%\.env %cd%\bin\
if \"%1\"==\"\" (
xcopy /Y /S %cd%\shell %cd%\bin\
set GOOS=windows
set GOARCH=amd64
echo build windows package
)
if \"%1\"==\"windows\" (
xcopy /Y /S %cd%\shell %cd%\bin\
set GOOS=windows
set GOARCH=amd64
echo build windows package
)
if \"%1\"==\"linux\" (
set GOOS=linux
set GOARCH=amd64
echo build linux package
)
go build -o bin/main.exe main.go
echo :) Build Complete!
echo=
pause
Go
1
https://gitee.com/shonnzong/zong-go.git
git@gitee.com:shonnzong/zong-go.git
shonnzong
zong-go
ZongGo
master

搜索帮助