【打包】删除在打包时可以设置version内容的功能

dev_chengFeng
JLIOSM1 2021-04-19 21:18:06 +08:00
parent 0fcff7b763
commit 4631e0cfcb
1 changed files with 16 additions and 16 deletions

View File

@ -67,11 +67,11 @@ namespace GameEditor.FrameTool {
/// </summary>
void InitGames()
{
version = new Version(Resources.Load<TextAsset>(VersionsFile).text);
defaultVersion = version.GetInfo("version");
subChannel = version.GetInfo("subChannel");
serverUrl = version.GetInfo("serverUrl");
resUrl = version.GetInfo("resUrl");
//version = new Version(Resources.Load<TextAsset>(VersionsFile).text);
//defaultVersion = version.GetInfo("version");
//subChannel = version.GetInfo("subChannel");
//serverUrl = version.GetInfo("serverUrl");
//resUrl = version.GetInfo("resUrl");
}
void OnGUI()
@ -83,15 +83,15 @@ namespace GameEditor.FrameTool {
EditorGUILayout.EndVertical();
isCopyABSToStreamingAssets = EditorGUILayout.BeginToggleGroup("拷贝AssetBundle到流媒体目录打包到App包体内", isCopyABSToStreamingAssets);
if (isCopyABSToStreamingAssets)
{
EditorGUILayout.BeginVertical();
defaultVersion = EditorGUILayout.TextField("Version", defaultVersion);
subChannel = EditorGUILayout.TextField("SubChannel", subChannel);
serverUrl = EditorGUILayout.TextField("ServerUrl", serverUrl);
resUrl = EditorGUILayout.TextField("ResUrl", resUrl);
EditorGUILayout.EndVertical();
}
//if (isCopyABSToStreamingAssets)
//{
// EditorGUILayout.BeginVertical();
// defaultVersion = EditorGUILayout.TextField("Version", defaultVersion);
// subChannel = EditorGUILayout.TextField("SubChannel", subChannel);
// serverUrl = EditorGUILayout.TextField("ServerUrl", serverUrl);
// resUrl = EditorGUILayout.TextField("ResUrl", resUrl);
// EditorGUILayout.EndVertical();
//}
EditorGUILayout.EndToggleGroup();
EditorGUILayout.Space();
@ -128,7 +128,7 @@ namespace GameEditor.FrameTool {
File.Copy(exportPath + "/lzma/luabytes.unity3d", targetPath + "/lzma/luabytes.unity3d", true);
File.Copy(exportPath + "/lzma/resconfigs.unity3d", targetPath + "/lzma/resconfigs.unity3d", true);
File.Copy(exportPath + "/files.unity3d", targetPath + "/files.unity3d", true);
SaveVersionFile();
//SaveVersionFile();
}
Close();
}
@ -160,7 +160,7 @@ namespace GameEditor.FrameTool {
if (isCopyABSToStreamingAssets)
{
FrameTool.CopyAssetBundleToStreamingAssets();
SaveVersionFile();
//SaveVersionFile();
}
//是否BuildPlayer
if (isBuildPlayer)