Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nobolu-ootsuka-unrealengine/7bb81eb3a779b897cdd40bd1a68de592 to your computer and use it in GitHub Desktop.
Save nobolu-ootsuka-unrealengine/7bb81eb3a779b897cdd40bd1a68de592 to your computer and use it in GitHub Desktop.
nobolu.ootsuka.unrealengine_Gist_00100_Setup.bat
@echo off
setlocal
pushd %~dp0
rem Sync the dependencies...
.\Engine\Binaries\DotNET\GitDependencies.exe --prompt %*
if ERRORLEVEL 1 goto error
rem Setup the git hooks...
if not exist .git\hooks goto no_git_hooks_directory
echo Registering git hooks...
echo #!/bin/sh >.git\hooks\post-checkout
echo Engine/Binaries/DotNET/GitDependencies.exe >>.git\hooks\post-checkout
echo #!/bin/sh >.git\hooks\post-merge
echo Engine/Binaries/DotNET/GitDependencies.exe >>.git\hooks\post-merge
:no_git_hooks_directory
rem Install prerequisites...
echo Installing prerequisites...
start /wait Engine\Extras\Redist\en-us\UE4PrereqSetup_x64.exe /quiet
rem Register the engine installation...
if not exist .\Engine\Binaries\Win64\UnrealVersionSelector-Win64-Shipping.exe goto :no_unreal_version_selector
.\Engine\Binaries\Win64\UnrealVersionSelector-Win64-Shipping.exe /register
:no_unreal_version_selector
rem Done!
goto :EOF
rem Error happened. Wait for a keypress before quitting.
:error
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment