@echo off SET CGO_ENABLED=0 SET GOARCH=amd64 SET GOOS=linux set linuxpath=../../server_publish/run/linux set configpath=..\..\server_publish\run\linux echo %linuxpath% echo "build linux ELF files" echo "[db] build linux ELF file" go build -o %linuxpath%/db ./db echo "[game] build linux ELF file" go build -o %linuxpath%/game ./game echo "[gate] build linux ELF file" go build -o %linuxpath%/gate ./gate echo "[auth] build linux ELF file" go build -o %linuxpath%/auth ./auth echo "[social] build linux ELF file" go build -o %linuxpath%/social ./social echo "[fruit] build linux ELF file" go build -o %linuxpath%/fruit ./fruit ::echo "[server_aoi] build linux ELF file" ::go build -o %linuxpath%/server_aoi ./server_aoi ::echo "[server_map_router] build linux ELF file" ::go build -o %linuxpath%/server_map_router ./server_map_router echo "[battleboss] build linux ELF file" go build -o %linuxpath%/battleboss ./battleboss echo "[rank] build linux ELF file" go build -o %linuxpath%/rank ./rank echo "[guild] build linux ELF file" go build -o %linuxpath%/guild ./guild echo "[gmweb] build linux ELF file" go build -o %linuxpath%/gmweb ./gmweb echo "[battlerecord] build linux ELF file" go build -o %linuxpath%/battlerecord ./battlerecord ::echo "[cross_router] build linux ELF file" ::go build -o %linuxpath%/cross_router ./cross_router ::echo "[cross_server] build linux ELF file" ::go build -o %linuxpath%/cross_server ./cross_server echo "build linux ELF files finish..." ::config files echo Y|xcopy .\config %configpath%\config /E/H/C/I rem cd ./test rem go build rem cd .. pause