This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +19
-10
lines changed Expand file tree Collapse file tree 1 file changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -31,24 +31,33 @@ if not exist "%Unity%" (
31
31
exit /b 1
32
32
) else (
33
33
cd unity\PackageProject\Assets
34
- git clean -xdf
34
+ call git clean -xdf
35
35
cd ..\..\..
36
36
37
37
cd src
38
- git clean -xdf
38
+ call git clean -xdf
39
39
cd ..
40
40
41
- common\nuget.exe restore GitHub.Unity.sln
42
- xbuild GitHub.Unity.sln /property:Configuration=%Configuration%
41
+ call common\nuget.exe restore GitHub.Unity.sln
42
+ call xbuild GitHub.Unity.sln /property:Configuration=%Configuration%
43
43
44
44
del /Q unity/PackageProject/Assets/Editor/GitHub/deleteme*
45
45
del /Q unity/PackageProject/Assets/Editor/GitHub/*.pdb
46
46
del /Q unity/PackageProject/Assets/Editor/GitHub/*.pdb.meta
47
47
del /Q unity/PackageProject/Assets/Editor/GitHub/*.xml
48
48
49
- for /f tokens^ =^ 2^ usebackq^ delims^ =^ " %%G in (`find " const string Version" common\SolutionInfo.cs`) do (
50
- set Version = %%G
51
- set GITHUB_UNITY_DISABLE = 1
52
- " %Unity% " -batchmode -projectPath " %~dp0 unity\PackageProject" -exportPackage Assets/Editor/GitHub github-for-unity-%Version% -alpha.unitypackage -force-free -quit
53
- )
54
- )
49
+ for /f tokens^ =^ 2^ usebackq^ delims^ =^ " %%G in (`find " const string Version" common\SolutionInfo.cs`) do call :Package %%G
50
+
51
+ goto End
52
+
53
+ :Package
54
+ set Version = %1
55
+ set GITHUB_UNITY_DISABLE = 1
56
+ echo " %Unity% " -batchmode -projectPath " %~dp0 unity\PackageProject" -exportPackage Assets/Editor/GitHub github-for-unity-%Version% -alpha.unitypackage -force-free -quit
57
+ call " %Unity% " -batchmode -projectPath " %~dp0 unity\PackageProject" -exportPackage Assets/Editor/GitHub github-for-unity-%Version% -alpha.unitypackage -force-free -quit
58
+ goto :eof
59
+
60
+ :End
61
+ echo Completed
62
+ )
63
+ ENDLOCAL
You can’t perform that action at this time.
0 commit comments