Esempio n. 1
0
 public ApplicationLauncherImpl(string playerPackage, string installPath, string packageName, string configuration, WSASDK wsaSDK, WSASDK globalWSASDK, WSABuildAndRunDeployTarget deployTarget)
 {
     this.playerPackage = playerPackage;
     this.installPath   = installPath;
     this.packageName   = packageName;
     this.configuration = configuration;
     this.wsaSDK        = wsaSDK;
     this.globalWSASDK  = globalWSASDK;
     this.deployTarget  = deployTarget;
     DetermineBuildPlatform(wsaSDK, deployTarget, out this.platform);
     this.scriptingBackend = PlayerSettings.GetScriptingBackend(BuildTargetGroup.WSA);
 }
Esempio n. 2
0
        public void OverwriteWithCurrentBuildSettings()
        {
            scenes = EditorBuildSettings.scenes.Select(x => new BuildScene
            {
                scene   = AssetDatabase.LoadAssetAtPath <SceneAsset>(x.path),
                path    = x.path,
                guid    = x.guid.ToString(),
                enabled = x.enabled,
            })
                     .ToArray();

            activeBuildTarget = EditorUserBuildSettings.activeBuildTarget;
            activeScriptCompilationDefines =
                PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup)
                .Split(';').ToList();
            allowDebugging               = EditorUserBuildSettings.allowDebugging;
            androidBuildSubtarget        = EditorUserBuildSettings.androidBuildSubtarget;
            androidEtc2Fallback          = EditorUserBuildSettings.androidETC2Fallback;
            buildAppBundle               = EditorUserBuildSettings.buildAppBundle;
            buildScriptsOnly             = EditorUserBuildSettings.buildScriptsOnly;
            compressFilesInPackage       = EditorUserBuildSettings.compressFilesInPackage;
            compressWithPsArc            = EditorUserBuildSettings.compressWithPsArc;
            connectProfiler              = EditorUserBuildSettings.connectProfiler;
            development                  = EditorUserBuildSettings.development;
            enableHeadlessMode           = EditorUserBuildSettings.enableHeadlessMode;
            explicitArrayBoundsChecks    = EditorUserBuildSettings.explicitArrayBoundsChecks;
            explicitDivideByZeroChecks   = EditorUserBuildSettings.explicitDivideByZeroChecks;
            explicitNullChecks           = EditorUserBuildSettings.explicitNullChecks;
            exportAsGoogleAndroidProject = EditorUserBuildSettings.exportAsGoogleAndroidProject;
            forceInstallation            = EditorUserBuildSettings.forceInstallation;
            installInBuildFolder         = EditorUserBuildSettings.installInBuildFolder;
            iOsBuildConfigType           = EditorUserBuildSettings.iOSBuildConfigType;
            movePackageToDiscOuterEdge   = EditorUserBuildSettings.movePackageToDiscOuterEdge;
            needSubmissionMaterials      = EditorUserBuildSettings.needSubmissionMaterials;
            ps4BuildSubtarget            = EditorUserBuildSettings.ps4BuildSubtarget;
            ps4HardwareTarget            = EditorUserBuildSettings.ps4HardwareTarget;
            selectedBuildTargetGroup     = EditorUserBuildSettings.selectedBuildTargetGroup;
            selectedStandaloneTarget     = EditorUserBuildSettings.selectedStandaloneTarget;
            streamingInstallLaunchRange  = EditorUserBuildSettings.streamingInstallLaunchRange;
            symlinkLibraries             = EditorUserBuildSettings.symlinkLibraries;
            waitForPlayerConnection      = EditorUserBuildSettings.waitForPlayerConnection;
            windowsDevicePortalAddress   = EditorUserBuildSettings.windowsDevicePortalAddress;
            windowsDevicePortalPassword  = EditorUserBuildSettings.windowsDevicePortalPassword;
            windowsDevicePortalUsername  = EditorUserBuildSettings.windowsDevicePortalUsername;
            wsaBuildAndRunDeployTarget   = EditorUserBuildSettings.wsaBuildAndRunDeployTarget;
            wsaSubtarget                 = EditorUserBuildSettings.wsaSubtarget;
            wsaUwpsdk = EditorUserBuildSettings.wsaUWPSDK;
            wsaUwpVisualStudioVersion          = EditorUserBuildSettings.wsaUWPVisualStudioVersion;
            xboxBuildSubtarget                 = EditorUserBuildSettings.xboxBuildSubtarget;
            xboxOneDeployDrive                 = EditorUserBuildSettings.xboxOneDeployDrive;
            xboxOneDeployMethod                = EditorUserBuildSettings.xboxOneDeployMethod;
            xboxOneRebootIfDeployFailsAndRetry = EditorUserBuildSettings.xboxOneRebootIfDeployFailsAndRetry;
        }
        public MetroBuildWindowExtension(TargetExtension targetExtension)
        {
            WSAUWPBuildType[] typeArray1 = new WSAUWPBuildType[2];
            typeArray1[1]            = WSAUWPBuildType.D3D;
            this.uwpBuildTypes       = typeArray1;
            this.uwpBuildTypeStrings = new GUIContent[] { EditorGUIUtility.TextContent("XAML"), EditorGUIUtility.TextContent("D3D") };
            WSABuildAndRunDeployTarget[] targetArray1 = new WSABuildAndRunDeployTarget[3];
            targetArray1[1] = WSABuildAndRunDeployTarget.WindowsPhone;
            targetArray1[2] = WSABuildAndRunDeployTarget.LocalMachineAndWindowsPhone;
            this.wsaBuildAndRunDeployTargets = targetArray1;
            WSABuildAndRunDeployTarget[] targetArray2 = new WSABuildAndRunDeployTarget[2];
            targetArray2[1] = WSABuildAndRunDeployTarget.WindowsPhone;
            this.wsaUWPBuildAndRunDeployTargets    = targetArray2;
            this.wsaBuildAndRunDeployTargetStrings = new GUIContent[] { EditorGUIUtility.TextContent("Local Machine"), EditorGUIUtility.TextContent("Windows Phone"), EditorGUIUtility.TextContent("Local Machine and Windows Phone") };
            Dictionary <WSASDK, GUIContent> dictionary = new Dictionary <WSASDK, GUIContent> {
                {
                    WSASDK.SDK81,
                    EditorGUIUtility.TextContent("8.1")
                },
                {
                    WSASDK.PhoneSDK81,
                    EditorGUIUtility.TextContent("Phone 8.1")
                },
                {
                    WSASDK.UniversalSDK81,
                    EditorGUIUtility.TextContent("Universal 8.1")
                },
                {
                    WSASDK.UWP,
                    EditorGUIUtility.TextContent("Universal 10")
                }
            };

            this.wsaSDKs       = new WSASDK[] { WSASDK.SDK81 };
            this.wsaSDKStrings = new GUIContent[this.wsaSDKs.Length];
            for (int i = 0; i < this.wsaSDKs.Length; i++)
            {
                this.wsaSDKStrings[i] = dictionary[this.wsaSDKs[i]];
            }
            Version[] versionArray = UWPReferences.GetInstalledSDKVersions().ToArray <Version>();
            this.uwpSDKs          = new string[versionArray.Length + 1];
            this.uwpSDKStrings    = new GUIContent[versionArray.Length + 1];
            this.uwpSDKs[0]       = string.Empty;
            this.uwpSDKStrings[0] = EditorGUIUtility.TextContent("Latest installed");
            for (int j = 0; j < versionArray.Length; j++)
            {
                this.uwpSDKs[j + 1]       = versionArray[j].ToString();
                this.uwpSDKStrings[j + 1] = EditorGUIUtility.TextContent(this.uwpSDKs[j + 1]);
            }
            this.targetExtension = targetExtension;
        }
 public MetroBuildWindowExtension(TargetExtension targetExtension)
 {
     WSAUWPBuildType[] typeArray1 = new WSAUWPBuildType[2];
     typeArray1[1] = WSAUWPBuildType.D3D;
     this.uwpBuildTypes = typeArray1;
     this.uwpBuildTypeStrings = new GUIContent[] { EditorGUIUtility.TextContent("XAML"), EditorGUIUtility.TextContent("D3D") };
     WSABuildAndRunDeployTarget[] targetArray1 = new WSABuildAndRunDeployTarget[3];
     targetArray1[1] = WSABuildAndRunDeployTarget.WindowsPhone;
     targetArray1[2] = WSABuildAndRunDeployTarget.LocalMachineAndWindowsPhone;
     this.wsaBuildAndRunDeployTargets = targetArray1;
     WSABuildAndRunDeployTarget[] targetArray2 = new WSABuildAndRunDeployTarget[2];
     targetArray2[1] = WSABuildAndRunDeployTarget.WindowsPhone;
     this.wsaUWPBuildAndRunDeployTargets = targetArray2;
     this.wsaBuildAndRunDeployTargetStrings = new GUIContent[] { EditorGUIUtility.TextContent("Local Machine"), EditorGUIUtility.TextContent("Windows Phone"), EditorGUIUtility.TextContent("Local Machine and Windows Phone") };
     Dictionary<WSASDK, GUIContent> dictionary = new Dictionary<WSASDK, GUIContent> {
         { 
             WSASDK.SDK81,
             EditorGUIUtility.TextContent("8.1")
         },
         { 
             WSASDK.PhoneSDK81,
             EditorGUIUtility.TextContent("Phone 8.1")
         },
         { 
             WSASDK.UniversalSDK81,
             EditorGUIUtility.TextContent("Universal 8.1")
         },
         { 
             WSASDK.UWP,
             EditorGUIUtility.TextContent("Universal 10")
         }
     };
     this.wsaSDKs = new WSASDK[] { WSASDK.SDK81 };
     this.wsaSDKStrings = new GUIContent[this.wsaSDKs.Length];
     for (int i = 0; i < this.wsaSDKs.Length; i++)
     {
         this.wsaSDKStrings[i] = dictionary[this.wsaSDKs[i]];
     }
     this.targetExtension = targetExtension;
 }