| | |
| | | //private string m_OutputPath = string.Empty;
|
| | | //[SerializeField]
|
| | | //private bool m_UseDefaultPath = true;
|
| | | private string m_streamingPath {
|
| | | get {
|
| | | private string m_streamingPath
|
| | | {
|
| | | get
|
| | | {
|
| | | switch (m_UserData.m_BuildTarget)
|
| | | {
|
| | | case ValidBuildTarget.Android:
|
| | |
| | |
|
| | | [SerializeField] int m_Version;
|
| | |
|
| | | public string ApkOutputPath {
|
| | | public string ApkOutputPath
|
| | | {
|
| | | get { return LocalSave.GetString("APKOutPutPath"); }
|
| | | set { LocalSave.SetString("APKOutPutPath", value); }
|
| | | }
|
| | |
|
| | | public string publishers {
|
| | | public string publishers
|
| | | {
|
| | | get { return LocalSave.GetString("APKPublishers"); }
|
| | | set { LocalSave.SetString("APKPublishers", value); }
|
| | | }
|
| | |
| | |
|
| | | GUILayout.EndHorizontal();
|
| | |
|
| | | GUILayout.Space(20);
|
| | | if (GUILayout.Button("SwitchVersionConfig"))
|
| | | {
|
| | | EditorApplication.delayCall += ExecuteSwitchVersionConfig;
|
| | | }
|
| | |
|
| | | GUILayout.EndVertical();
|
| | | EditorGUILayout.EndScrollView();
|
| | | }
|
| | |
| | | ClientPackage.BuildPublishers(ClientPackage.SDK_PLUGIN_PROJECT, outputPath, ApkOutputPath, publishers, true, false);
|
| | | }
|
| | |
|
| | | private void ExecuteSwitchVersionConfig()
|
| | | {
|
| | | var newVersionConfigPath = StringUtility.Contact("Assets/Resources/ScriptableObject/Config/VersionConfig", ".asset");
|
| | | var versionsFilePath = Application.dataPath + Path.DirectorySeparatorChar + "Editor/VersionConfigs/Versions.txt";
|
| | |
|
| | | var lines = File.ReadAllLines(versionsFilePath);
|
| | | for (int i = 2; i < lines.Length; i++)
|
| | | {
|
| | | var line = lines[i];
|
| | | var lineStrings = line.Split('\t');
|
| | | if (lineStrings[0] == publishers)
|
| | | {
|
| | | VersionConfig.Get().Read(line);
|
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private static void DirectoryCopy(string sourceDirName, string destDirName)
|
| | | {
|
| | | // Get the subdirectories for the specified directory.
|