@echo offsetlocalset Configuration=Releaseif %1.==. (echo Need path to Unityexit /b 1)set UnityPath=%1set UnityPath=%UnityPath:"=%set ChangeConfigurationToDebug=0if "%2"=="debug" (set ChangeConfigurationToDebug=1)if "%2"=="Debug" (set ChangeConfigurationToDebug=1)if %ChangeConfigurationToDebug%==1 (set Configuration=Debug)set Unity=%UnityPath%\Editor\Unity.exeif not exist "%Unity%" (echo Cannot find Unity at %Unity%exit /b 1) else (cd unity\PackageProject\Assetscall git clean -xdfcd ..\..\..cd srccall git clean -xdfcd ..call common\nuget.exe restore GitHub.Unity.slnecho xbuild GitHub.Unity.sln /property:Configuration=%Configuration%call xbuild GitHub.Unity.sln /property:Configuration=%Configuration%del /Q unity\PackageProject\Assets\Plugins\GitHub\Editor\deleteme*del /Q unity\PackageProject\Assets\Plugins\GitHub\Editor\*.pdbdel /Q unity\PackageProject\Assets\Plugins\GitHub\Editor\*.pdb.metadel /Q unity\PackageProject\Assets\Plugins\GitHub\Editor\*.xmlfor /f tokens^=^2^ usebackq^ delims^=^"%%G in (`find "const string GitHubForUnityVersion" common\SolutionInfo.cs`) do call :Package %%Ggoto End:Packageset Version=%1set GITHUB_UNITY_DISABLE=1echo "%Unity%" -batchmode -projectPath "%~dp0unity\PackageProject" -exportPackage Assets/Editor/GitHub github-for-unity-%Version%-alpha.unitypackage -force-free -quitcall "%Unity%" -batchmode -projectPath "%~dp0unity\PackageProject" -exportPackage Assets/Editor/GitHub github-for-unity-%Version%-alpha.unitypackage -force-free -quitgoto:eof:Endecho Completed)endlocal
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。