Skip to content

Commit 4e08dfa

Browse files
author
Jared Bienz
committed
Created packing script and package for release 1.0.0.
1 parent 6869390 commit 4e08dfa

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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
25.8 MB
Binary file not shown.

0 commit comments

Comments
 (0)