Skip to content

Instantly share code, notes, and snippets.

@cuixin
Created December 26, 2017 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cuixin/da3fbad4a9cf8fa8b169e41626a94dcb to your computer and use it in GitHub Desktop.
Save cuixin/da3fbad4a9cf8fa8b169e41626a94dcb to your computer and use it in GitHub Desktop.
my unity game daily build script
mkdir C:\DailyBuild\%date:~10,4%%date:~4,2%%date:~7,2%
cd C:\MyGame
copy /Y ProjectSettings.asset MyGame\Project\ProjectSettings\
"C:\Program Files\Unity\Editor\Unity.exe" -batchmode -nographics -quit -projectPath "C:\MyGame\Project" -buildTarget Win -buildWindowsPlayer "C:\DailyBuild\%date:~10,4%%date:~4,2%%date:~7,2%\cm.exe"
sh --login C:/ci/cibuild.sh
build
cd /c/MyGame/Project
git reset --hard HEAD
git pull
cd /c/MyGame/Project/Assets/scripts
git reset --hard HEAD
git pull
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment