Skip to content

Instantly share code, notes, and snippets.

@zhaojunmeng
Last active July 11, 2024 12:20
Show Gist options
  • Save zhaojunmeng/d53e34ad807522bf0079f8fbe8e2b7ea to your computer and use it in GitHub Desktop.
Save zhaojunmeng/d53e34ad807522bf0079f8fbe8e2b7ea to your computer and use it in GitHub Desktop.
Call Setup.bat in Unreal Engine Source, add multithread, local download cache and exclude list
@REM You can use --dry-run to just print what will be downloaded.
@REM You can use --cache to specify a custom path for the download cache.
@REM call Setup.bat --dry-run --threads=%NUMBER_OF_PROCESSORS% --cache=C:\Code\Cache\ue-gitdeps ^
call Setup.bat --threads=%NUMBER_OF_PROCESSORS% --cache=C:\Code\Cache\ue-gitdeps ^
--exclude=HoloLens ^
--exclude=Linux ^
--exclude=linux-64 ^
--exclude=linux32 ^
--exclude=linux64 ^
--exclude=Linux64-Release ^
--exclude=LinuxArm64 ^
--exclude=Mac ^
--exclude=mac-64 ^
--exclude=mac-arm64 ^
--exclude=Mac64-Release ^
--exclude=macOS ^
--exclude=macosx ^
--exclude=osx ^
--exclude=OSX ^
--exclude=osx-x64 ^
--exclude=osx32 ^
--exclude=osx64 ^
--exclude=Samples ^
--exclude=Templates ^
--exclude=TVOS ^
--exclude=Unix ^
--exclude=WinRT >Setup_Slim.log
pause
@zhaojunmeng
Copy link
Author

If mac-x64, linux-x64 is excluded, Win.Automation project will failed to build in version 5.2

@zhaojunmeng
Copy link
Author

If IOS is excluded, cook will failed due to "Could not find a part of the path 'Engine\Source\Programs\AutomationTool\IOS\Resources\GreenCheck.png'. (Engine\Source\Programs\AutomationTool\IOS\IOS.Automation.csproj)", in version 5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment