zoukankan      html  css  js  c++  java
  • ue4 setup排除

    @echo off     //关闭回显功能
    setlocal  //让程序对于系统变量的改变只在程序内起作用
    pushd "%~dp0"// 保存当前目录并切换至当前目录
    
    rem Figure out if we should append the -prompt argument
    set PROMPT_ARGUMENT=
    for %%P in (%*) do if /I "%%P" == "--prompt" goto no_prompt_argument
    for %%P in (%*) do if /I "%%P" == "--force" goto no_prompt_argument
    set PROMPT_ARGUMENT=--prompt  // 优化位置
    :no_prompt_argument
    
    rem Sync the dependencies...
    .EngineBinariesDotNETGitDependencies.exe %PROMPT_ARGUMENT% %*
    if ERRORLEVEL 1 goto error
    
    rem Setup the git hooks...
    if not exist .githooks goto no_git_hooks_directory
    echo Registering git hooks...
    echo #!/bin/sh >.githookspost-checkout
    echo Engine/Binaries/DotNET/GitDependencies.exe %* >>.githookspost-checkout
    echo #!/bin/sh >.githookspost-merge
    echo Engine/Binaries/DotNET/GitDependencies.exe %* >>.githookspost-merge
    :no_git_hooks_directory
    
    rem Install prerequisites...
    echo Installing prerequisites...
    start /wait EngineExtrasRedisten-usUE4PrereqSetup_x64.exe /quiet
    
    rem Register the engine installation...
    if not exist .EngineBinariesWin64UnrealVersionSelector-Win64-Shipping.exe goto :no_unreal_version_selector
    .EngineBinariesWin64UnrealVersionSelector-Win64-Shipping.exe /register
    :no_unreal_version_selector
    
    rem Done!
    goto :EOF
    
    rem Error happened. Wait for a keypress before quitting.
    :error
    pause
    
    
    

    可设置优化参数:

    --exclude=<XXX> (这些选项前的双横线也可以用单横线)

    排除掉自己不需要的平台和VS版本,例如: setup.bat -exclude=Linux -exclude=IOS -exclude=HTML5 -exclude=Android -exclude=VS2013
    平台可选的参数:Win32, Win64, osx32,osx64, Linux, Android, IOS, HTML5
    VS版本可选参数:VS2012,VS2013,VS2015
    警告: 不要排除Win32 和 VS2012, 不然后期编译会遇到问题

    --threads=<N>

    多线程下载,速度倍增。例如:setup.bat --threads=2

    --cache=<PATH>

    把下载的内容缓存在指定的目录,这样如果有多人需要,就可以只下载一次,然后分享给大家,例如:setup.bat --cache=D:Temp

    --proxy=<user:password@url>

    使用代理下载



    参考链接:https://www.jianshu.com/p/f8de7d59dd0e
  • 相关阅读:
    F
    E
    网上见到一同行发的隐私政策 备以后用
    Cannot connect to the Docker daemon. Is the docker daemon running on this host?
    mark
    转 随机数问题
    随机不同的数
    转 基于Quick-cocos2dx 2.2.3 的动态更新实现完整篇。(打包,服务器接口,模块自更新
    字符串
    关于cmbiling.jar cocos2dx的问题
  • 原文地址:https://www.cnblogs.com/Shaojunping/p/12973298.html
Copyright © 2011-2022 走看看