Created
February 27, 2017 17:26
-
-
Save nobolu-ootsuka-unrealengine/7bb81eb3a779b897cdd40bd1a68de592 to your computer and use it in GitHub Desktop.
nobolu.ootsuka.unrealengine_Gist_00100_Setup.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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