• 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
  • 相关阅读:
    大组合取模之:1<=n<=m<=1e6,1<=p<=1e9
    大组合数取模之lucas定理模板,1<=n<=m<=1e9,1<p<=1e6,p必须为素数
    fzu2020( c(n,m)%p,其中n, m, p (1 <= m <= n <= 10^9, m <= 10^4, m < p < 10^9, p是素数) )
    lucas定理证明
    各类小公式
    x^a=b(mod c)求解x在[0,c-1]上解的个数模板+原根求法
    快速幂+乘模 模板
    hdu1695(容斥 or 莫比乌斯反演)
    poj1845(二分快速求等比数列模M和)
    2018JAVA面试题附答案
  • 原文地址:https://www.cnblogs.com/Shaojunping/p/12973298.html
Copyright © 2020-2023  润新知