| | |
| | | }
|
| | |
|
| | | static string ANDROID_PLUGIN_PATH = Application.dataPath + "/Plugins/Android";
|
| | | static string iOS_PLUGIN_PATH = Application.dataPath + "/Plugins/iOS/The2thWorldSDK";
|
| | |
|
| | | static int packageIndex {
|
| | | get { return LocalSave.GetInt("ClientPackageIndex", 1); }
|
| | |
| | | #if UNITY_ANDROID
|
| | | BuildApk(_sdkPath, _output, smallPackages[i], _development);
|
| | | #elif UNITY_IOS
|
| | | BuildIpa(smallPackages[i], _replace);
|
| | | BuildIpa(_sdkPath, smallPackages[i], _replace);
|
| | | #endif
|
| | | }
|
| | | }
|
| | |
| | | #if UNITY_ANDROID
|
| | | BuildApk(_sdkPath, _output, halfPackages[i], _development);
|
| | | #elif UNITY_IOS
|
| | | BuildIpa(halfPackages[i], _replace);
|
| | | BuildIpa(_sdkPath, halfPackages[i], _replace);
|
| | | #endif
|
| | | }
|
| | | }
|
| | |
| | | #if UNITY_ANDROID
|
| | | BuildApk(_sdkPath, _output, bigPackages[i], _development);
|
| | | #elif UNITY_IOS
|
| | | BuildIpa(bigPackages[i], _replace);
|
| | | BuildIpa(_sdkPath, bigPackages[i], _replace);
|
| | | #endif
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public static void BuildIpa(string _publisher, bool _replace)
|
| | | public static void BuildIpa(string _sdkPath, string _publisher, bool _replace)
|
| | | {
|
| | | PreBuild(_publisher);
|
| | |
|
| | | var versionName = string.Empty;
|
| | | var versionConfig = GetVersionConfig(_publisher, out versionName);
|
| | | if (!versionConfig.appId.Equals("test"))
|
| | | {
|
| | | FileExtersion.DirectoryCopy(StringUtility.Contact(_sdkPath, "/ChannelDiff/", versionConfig.appId), iOS_PLUGIN_PATH);
|
| | | } |
| | | AssetDatabase.SaveAssets();
|
| | | AssetDatabase.Refresh();
|
| | |
|
| | | PlayerSettings.iOS.buildNumber = VersionConfig.Get().buildIndex.ToString();
|
| | | PlayerSettings.iOS.appleDeveloperTeamID = VersionConfig.Get().appleDeveloperTeamID;
|
| | |
|