File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Assets/HoloToolkit/BuildAndDeploy/Editor Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -651,7 +651,8 @@ private void AppxBuildGUI()
651651 GUILayout . FlexibleSpace ( ) ;
652652
653653 // Open AppX packages location
654- string appxBuildPath = Path . GetFullPath ( BuildDeployPrefs . BuildDirectory + "/" + PlayerSettings . productName + "/AppPackages" ) ;
654+ string appxDirectory = curScriptingBackend == ScriptingImplementation . IL2CPP ? "/AppPackages/" + PlayerSettings . productName : "/" + PlayerSettings . productName + "/AppPackages" ;
655+ string appxBuildPath = Path . GetFullPath ( BuildDeployPrefs . BuildDirectory + appxDirectory ) ;
655656 GUI . enabled = builds . Count > 0 && ! string . IsNullOrEmpty ( appxBuildPath ) ;
656657
657658 if ( GUILayout . Button ( "Open APPX Packages Location" , GUILayout . Width ( halfWidth ) ) )
@@ -1071,13 +1072,16 @@ private void UpdateBuilds()
10711072 {
10721073 builds . Clear ( ) ;
10731074
1075+ var curScriptingBackend = PlayerSettings . GetScriptingBackend ( BuildTargetGroup . WSA ) ;
1076+ string appxDirectory = curScriptingBackend == ScriptingImplementation . IL2CPP ? "AppPackages\\ " + PlayerSettings . productName : PlayerSettings . productName + "\\ AppPackages" ;
1077+
10741078 try
10751079 {
10761080 appPackageDirectories . Clear ( ) ;
10771081 string [ ] buildList = Directory . GetDirectories ( BuildDeployPrefs . AbsoluteBuildDirectory , "*" , SearchOption . AllDirectories ) ;
10781082 foreach ( string appBuild in buildList )
10791083 {
1080- if ( appBuild . Contains ( "AppPackages" ) && ! appBuild . Contains ( "AppPackages \\ ") )
1084+ if ( appBuild . Contains ( appxDirectory ) && ! appBuild . Contains ( appxDirectory + " \\ ") )
10811085 {
10821086 appPackageDirectories . AddRange ( Directory . GetDirectories ( appBuild ) ) ;
10831087 }
You can’t perform that action at this time.
0 commit comments