Ejemplo n.º 1
0
        public static void BuildAndroid()
        {
            // Set Build Target
            EditorUserBuildSettings.SwitchActiveBuildTarget(BuildTarget.Android);

            // Update Settings and Manifest
            BibaContentUploader.RunContentPipeLineWithoutUpload();

            // Set Build Number
            PlayerSettings.Android.bundleVersionCode = JenkinsBuildNumber;
            StoreBuildNumber();

            // Set KeyStore
            PlayerSettings.Android.keystorePass = KEYSTORE_PASSWORD;
            PlayerSettings.Android.keyaliasName = PlayerSettings.Android.keyaliasName;
            PlayerSettings.Android.keyaliasPass = KEYSTORE_PASSWORD;

            // Set SDK path
            EditorPrefs.SetString(ANDROID_SDK_FOLDER_KEY, ANDROID_SDK_FOLDER_PATH);

            // Get filename
            var path = Path.Combine(ANDROID_OUTPUT_PATH, ANDROID_APK);

            BuildPlayer(path, BuildTarget.Android);
        }
Ejemplo n.º 2
0
        public static void BuildIOS()
        {
            // Set Build Target
            EditorUserBuildSettings.SwitchActiveBuildTarget(BuildTarget.iOS);

            // Update Settings and Manifest
            BibaContentUploader.RunContentPipeLineWithoutUpload();

            // Set Build Number
            PlayerSettings.iOS.buildNumber = JenkinsBuildNumber.ToString();
            StoreBuildNumber();

            // Get filename
            var path = IOS_OUTPUT_PATH;

            BuildPlayer(path, BuildTarget.iOS);
        }