附近小店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

14 lines
235 B

  1. @echo off
  2. set Name=task
  3. set BasePath=%~dp0
  4. set APP=%Name%.exe
  5. set CfgPath=%BasePath%etc\%Name%.yml
  6. del %BasePath%\bin\%APP%
  7. go build -o %BasePath%\bin\%APP% %BasePath%\cmd\%Name%\main.go && %BasePath%\bin\%APP% -c=%CfgPath%
  8. pause