【version】不再保存到resources路径

dev_chengFeng
gaoxin 2021-05-26 13:43:49 +08:00
parent 653d9bbd06
commit 7dede46133
1 changed files with 4 additions and 4 deletions

View File

@ -248,9 +248,9 @@ namespace GameEditor.FrameTool {
public class VersionWindow : EditorWindow
{
static string versionPath = Application.dataPath + "/../Version";
static string editorVersion = Application.dataPath + "/../AssetBundles/version.txt";
static string persistVersion = Application.dataPath + "/Resources/version.txt";
static string streamVersion = AppConst.StreamPath + "/Resources/version.txt";
static string editorVersion = Application.dataPath + "/../AssetBundles/" + AppConst.GameVersionFile;
//static string persistVersion = Application.dataPath + "/Resources/version.txt";
static string streamVersion = AppConst.StreamPath + AppConst.GameVersionFile;
static VersionTxt m_VersionTxt; // 热更版本
@ -297,7 +297,7 @@ namespace GameEditor.FrameTool {
private static void SaveToBuildPath()
{
string json = JsonUtility.ToJson(m_VersionTxt);
SaveToVersion(persistVersion, json);
//SaveToVersion(persistVersion, json);
SaveToVersion(streamVersion, json);
}
// 保存到version