Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 1ce250b

Browse files
package.cmd cleanup
1 parent 310fb4a commit 1ce250b

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

package.cmd

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
@ECHO off
2-
SETLOCAL
1+
@echo off
2+
setlocal
33

44
set Configuration=Release
55

66
if %1.==. (
77
echo Need path to Unity
8-
EXIT /b 1
8+
exit /b 1
99
)
1010

1111
set UnityPath=%1
@@ -39,12 +39,13 @@ if not exist "%Unity%" (
3939
cd ..
4040

4141
call common\nuget.exe restore GitHub.Unity.sln
42+
echo xbuild GitHub.Unity.sln /property:Configuration=%Configuration%
4243
call xbuild GitHub.Unity.sln /property:Configuration=%Configuration%
4344

44-
del /Q unity/PackageProject/Assets/Editor/GitHub/deleteme*
45-
del /Q unity/PackageProject/Assets/Editor/GitHub/*.pdb
46-
del /Q unity/PackageProject/Assets/Editor/GitHub/*.pdb.meta
47-
del /Q unity/PackageProject/Assets/Editor/GitHub/*.xml
45+
del /Q unity\PackageProject\Assets\Editor\GitHub\deleteme*
46+
del /Q unity\PackageProject\Assets\Editor\GitHub\*.pdb
47+
del /Q unity\PackageProject\Assets\Editor\GitHub\*.pdb.meta
48+
del /Q unity\PackageProject\Assets\Editor\GitHub\*.xml
4849

4950
for /f tokens^=^2^ usebackq^ delims^=^" %%G in (`find "const string Version" common\SolutionInfo.cs`) do call :Package %%G
5051

@@ -60,4 +61,4 @@ if not exist "%Unity%" (
6061
:End
6162
echo Completed
6263
)
63-
ENDLOCAL
64+
endlocal

0 commit comments

Comments
 (0)