buildlinux.bat 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. @echo off
  2. SET CGO_ENABLED=0
  3. SET GOARCH=amd64
  4. SET GOOS=linux
  5. set linuxpath=D:\run\linux
  6. echo "build linux ELF files"
  7. echo "[db] build linux ELF file"
  8. go build -o %linuxpath%/db ./db
  9. echo "[game] build linux ELF file"
  10. go build -o %linuxpath%/game ./game
  11. echo "[gate] build linux ELF file"
  12. go build -o %linuxpath%/gate ./gate
  13. echo "[auth] build linux ELF file"
  14. go build -o %linuxpath%/auth ./auth
  15. echo "[social] build linux ELF file"
  16. go build -o %linuxpath%/social ./social
  17. ::echo "[server_aoi] build linux ELF file"
  18. ::go build -o %linuxpath%/server_aoi ./server_aoi
  19. ::echo "[server_map_router] build linux ELF file"
  20. ::go build -o %linuxpath%/server_map_router ./server_map_router
  21. echo "[battleboss] build linux ELF file"
  22. go build -o %linuxpath%/battleboss ./battleboss
  23. echo "[rank] build linux ELF file"
  24. go build -o %linuxpath%/rank ./rank
  25. echo "[guild] build linux ELF file"
  26. go build -o %linuxpath%/guild ./guild
  27. echo "[gmweb] build linux ELF file"
  28. go build -o %linuxpath%/gmweb ./gmweb
  29. echo "[battlerecord] build linux ELF file"
  30. go build -o %linuxpath%/battlerecord ./battlerecord
  31. ::echo "[cross_router] build linux ELF file"
  32. ::go build -o %linuxpath%/cross_router ./cross_router
  33. ::echo "[cross_server] build linux ELF file"
  34. ::go build -o %linuxpath%/cross_server ./cross_server
  35. echo "build linux ELF files finish..."
  36. ::config files
  37. xcopy /SY .\config D:\run\linux\config
  38. cd ./test
  39. go build
  40. cd ..
  41. pause