File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed
Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ REM @ECHO OFF
2+ ECHO .
3+
4+ pushd .
5+ cd ..
6+ cd ..
7+
8+ REM Set Paths
9+ SET UnityExe = " %ProgramFiles% \Unity\Hub\Editor\2018.3.0b11\Editor\Unity.exe"
10+ SET ProjectDir = %cd% \SpatialAlignment-Unity
11+ SET AssetDir = %ProjectDir% \Assets
12+ SET PackageDir = %cd% \External\UnityPackages
13+
14+ REM Set Package Info
15+ SET PackageName = SpatialAlignment
16+ SET PackageVersion = 1.0.0
17+ SET PackageFileName = %PackageName% -%PackageVersion% .unitypackage
18+
19+ ECHO Packaging %PackageName% %PackageVersion%
20+
21+ ECHO Defining Asset List
22+ SET Assets = %Assets% Assets\SpatialAlignment
23+ SET Assets = %Assets% Assets\SpatialAlignment-Examples
24+
25+ ECHO Generating %PackageFileName% ...
26+ %UnityExe% -batchmode -projectPath %ProjectDir% \ -exportPackage %Assets% %PackageDir% \%PackageFileName% -quit
27+
28+ IF ERRORLEVEL 1 GOTO PACKAGINGERROR
29+
30+ :SUCCESS
31+ ECHO " Package Success!"
32+ GOTO END
33+
34+ :PACKAGINGERROR
35+ ECHO " Packaging Error"
36+ PAUSE
37+ GOTO END
38+
39+ :END
40+ popd
You can’t perform that action at this time.
0 commit comments