【打包】删除在打包时可以设置version内容的功能
parent
0fcff7b763
commit
4631e0cfcb
|
@ -67,11 +67,11 @@ namespace GameEditor.FrameTool {
|
||||||
/// </summary>
|
/// </summary>
|
||||||
void InitGames()
|
void InitGames()
|
||||||
{
|
{
|
||||||
version = new Version(Resources.Load<TextAsset>(VersionsFile).text);
|
//version = new Version(Resources.Load<TextAsset>(VersionsFile).text);
|
||||||
defaultVersion = version.GetInfo("version");
|
//defaultVersion = version.GetInfo("version");
|
||||||
subChannel = version.GetInfo("subChannel");
|
//subChannel = version.GetInfo("subChannel");
|
||||||
serverUrl = version.GetInfo("serverUrl");
|
//serverUrl = version.GetInfo("serverUrl");
|
||||||
resUrl = version.GetInfo("resUrl");
|
//resUrl = version.GetInfo("resUrl");
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnGUI()
|
void OnGUI()
|
||||||
|
@ -83,15 +83,15 @@ namespace GameEditor.FrameTool {
|
||||||
EditorGUILayout.EndVertical();
|
EditorGUILayout.EndVertical();
|
||||||
|
|
||||||
isCopyABSToStreamingAssets = EditorGUILayout.BeginToggleGroup("拷贝AssetBundle到流媒体目录(打包到App包体内)", isCopyABSToStreamingAssets);
|
isCopyABSToStreamingAssets = EditorGUILayout.BeginToggleGroup("拷贝AssetBundle到流媒体目录(打包到App包体内)", isCopyABSToStreamingAssets);
|
||||||
if (isCopyABSToStreamingAssets)
|
//if (isCopyABSToStreamingAssets)
|
||||||
{
|
//{
|
||||||
EditorGUILayout.BeginVertical();
|
// EditorGUILayout.BeginVertical();
|
||||||
defaultVersion = EditorGUILayout.TextField("Version", defaultVersion);
|
// defaultVersion = EditorGUILayout.TextField("Version", defaultVersion);
|
||||||
subChannel = EditorGUILayout.TextField("SubChannel", subChannel);
|
// subChannel = EditorGUILayout.TextField("SubChannel", subChannel);
|
||||||
serverUrl = EditorGUILayout.TextField("ServerUrl", serverUrl);
|
// serverUrl = EditorGUILayout.TextField("ServerUrl", serverUrl);
|
||||||
resUrl = EditorGUILayout.TextField("ResUrl", resUrl);
|
// resUrl = EditorGUILayout.TextField("ResUrl", resUrl);
|
||||||
EditorGUILayout.EndVertical();
|
// EditorGUILayout.EndVertical();
|
||||||
}
|
//}
|
||||||
EditorGUILayout.EndToggleGroup();
|
EditorGUILayout.EndToggleGroup();
|
||||||
EditorGUILayout.Space();
|
EditorGUILayout.Space();
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ namespace GameEditor.FrameTool {
|
||||||
File.Copy(exportPath + "/lzma/luabytes.unity3d", targetPath + "/lzma/luabytes.unity3d", true);
|
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 + "/lzma/resconfigs.unity3d", targetPath + "/lzma/resconfigs.unity3d", true);
|
||||||
File.Copy(exportPath + "/files.unity3d", targetPath + "/files.unity3d", true);
|
File.Copy(exportPath + "/files.unity3d", targetPath + "/files.unity3d", true);
|
||||||
SaveVersionFile();
|
//SaveVersionFile();
|
||||||
}
|
}
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
|
@ -160,7 +160,7 @@ namespace GameEditor.FrameTool {
|
||||||
if (isCopyABSToStreamingAssets)
|
if (isCopyABSToStreamingAssets)
|
||||||
{
|
{
|
||||||
FrameTool.CopyAssetBundleToStreamingAssets();
|
FrameTool.CopyAssetBundleToStreamingAssets();
|
||||||
SaveVersionFile();
|
//SaveVersionFile();
|
||||||
}
|
}
|
||||||
//是否BuildPlayer
|
//是否BuildPlayer
|
||||||
if (isBuildPlayer)
|
if (isBuildPlayer)
|
||||||
|
|
Loading…
Reference in New Issue