@echo off setlocal ENABLEDELAYEDEXPANSION rem Ensure correct local path. cd /D "%~dp0" rem Microsoft borked the dotnet installer/path handler, so force x64 to be read first set PATH=C:\Program Files\dotnet;%PATH% set DOTNET_CLI_TELEMETRY_OPTOUT=1 rem Server settings option if exist .\src\bin\always_pull ( echo "Pulling latest changes..." git pull ) if exist .\src\bin\must_rebuild ( echo "Rebuilding..." rmdir /s /q .\src\bin\live_release_backup move .\src\bin\live_release .\src\bin\live_release_backup del .\src\bin\must_rebuild ) else if not exist .git ( echo "" & echo "" echo "WARNING: YOU DID NOT CLONE FROM GIT. THIS WILL BREAK SOME SYSTEMS. PLEASE INSTALL PER THE README." echo "" & echo "" ) else ( for /f "delims=" %%i in ('git rev-parse HEAD') do set CUR_HEAD=%%i set /p BUILT_HEAD=