1+ $editorFiles = @ (" MLAPIProfiler.cs" , " NetworkedAnimatorEditor.cs" , " NetworkedBehaviourEditor.cs" , " NetworkedObjectEditor.cs" , " NetworkingManagerEditor.cs" , " TrackedObjectEditor.cs" )
2+ $installerFiles = @ (" MLAPIEditor.cs" )
3+
4+ $myPath = (Get-Item - Path " .\" ).FullName;
5+ $basePath = -join ($myPath , " /MLAPI-Editor/" )
6+ $builderPath = -join ($myPath , " /Libraries/Internal/UnityPackager/UnityPackager.exe" )
7+
8+ $editorOutPath = -join ($myPath , " /MLAPI-Editor.unitypackage" )
9+ $installerOutPath = -join ($myPath , " /MLAPI-Installer.unitypackage" )
10+
11+ $editorBuildArgs = " "
12+ if (! $IsWindows ) {
13+ $editorBuildArgs += -join ($builderPath , " " )
14+ }
15+ $editorBuildArgs += -join ($basePath , " " , $editorOutPath , " " )
16+
17+ For ($i = 0 ; $i -lt $editorFiles.Count ; $i ++ )
18+ {
19+ $editorBuildArgs += -join ($basePath , $editorFiles.Get ($i ), " " )
20+ $editorBuildArgs += -join (" Assets/" , $editorFiles.Get ($i ), " " )
21+ }
22+
23+ $installerBuildArgs = " "
24+ if (! $IsWindows ) {
25+ $installerBuildArgs += -join ($builderPath , " " )
26+ }
27+ $installerBuildArgs += -join ($basePath , " " , $installerOutPath , " " )
28+
29+ For ($i = 0 ; $i -lt $installerFiles.Count ; $i ++ )
30+ {
31+ $installerBuildArgs += -join ($basePath , $installerFiles.Get ($i ), " " )
32+ $installerBuildArgs += -join (" Assets/" , $installerFiles.Get ($i ), " " )
33+ }
34+
35+ $myBuilderPath = " " ;
36+ if (! $IsWindows ) {
37+ $myBuilderPath = " mono"
38+ } else {
39+ $myBuilderPath = $builderPath
40+ }
41+
42+ Start-Process - FilePath $myBuilderPath - ArgumentList $editorBuildArgs
43+ Start-Process - FilePath $myBuilderPath - ArgumentList $installerBuildArgs
0 commit comments