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 +53
-2
lines changed Expand file tree Collapse file tree 1 file changed +53
-2
lines changed Original file line number Diff line number Diff line change 1
- set GITHUB_UNITY_DISABLE = 1
2
- %1 \Unity.exe -batchmode -projectPath %~dp0 unity\PackageProject -exportPackage Assets\Editor\GitHub github-for-unity-windows.unitypackage -force-free -quit
1
+ @ ECHO on
2
+
3
+ set Configuration = Release
4
+
5
+ if %1 .== . (
6
+ echo Need path to Unity
7
+ EXIT /b 1
8
+ )
9
+
10
+ set UnityPath = %1
11
+ set UnityPath = %UnityPath:" =%
12
+
13
+ set ChangeConfigurationToDebug = 0
14
+
15
+ if " %2 " == " debug" (
16
+ set ChangeConfigurationToDebug = 1
17
+ )
18
+
19
+ if " %2 " == " Debug" (
20
+ set ChangeConfigurationToDebug = 1
21
+ )
22
+
23
+ if %ChangeConfigurationToDebug% == 1 (
24
+ set Configuration = Debug
25
+ )
26
+
27
+ set Unity = %UnityPath% \Editor\Unity.exe
28
+ if not exist " %Unity% " (
29
+ echo Cannot find Unity at %Unity%
30
+ exit /b 1
31
+ ) else (
32
+ cd unity\PackageProject\Assets
33
+ git clean -xdf
34
+ cd ..\..\..
35
+
36
+ cd src
37
+ git clean -xdf
38
+ cd ..
39
+
40
+ common\nuget.exe restore GitHub.Unity.sln
41
+ xbuild GitHub.Unity.sln /property:Configuration=%Configuration%
42
+
43
+ del /Q unity/PackageProject/Assets/Editor/GitHub/deleteme*
44
+ del /Q unity/PackageProject/Assets/Editor/GitHub/*.pdb
45
+ del /Q unity/PackageProject/Assets/Editor/GitHub/*.pdb.meta
46
+ del /Q unity/PackageProject/Assets/Editor/GitHub/*.xml
47
+
48
+ for /f tokens^ =^ 2^ usebackq^ delims^ =^ " %%G in (`find " const string Version" common\SolutionInfo.cs`) do (
49
+ set Version = %%G
50
+ set GITHUB_UNITY_DISABLE = 1
51
+ " %Unity% " -batchmode -projectPath " %~dp0 unity\PackageProject" -exportPackage Assets/Editor/GitHub github-for-unity-%Version% -alpha.unitypackage -force-free -quit
52
+ )
53
+ )
You can’t perform that action at this time.
0 commit comments