gdl_123 4 months ago
parent
commit
aba1ed0435
1 changed files with 9 additions and 0 deletions
  1. 9 0
      Assets/Editor/AssetBundle/CheckHotUpdateRes.cs

+ 9 - 0
Assets/Editor/AssetBundle/CheckHotUpdateRes.cs

@@ -36,6 +36,15 @@ public class CheckHotUpdateRes : EditorWindow
         }
     }
 
+    [MenuItem("AssetBundle/创建最大Version")]
+    public static void CreateVersion()
+    {
+#if UNITY_IOS
+        FileHelper.WirteStringToFile(Application.dataPath+ "/StreamingAssets/unityRes/afivs", "99.99.99.99");
+#else
+        FileHelper.WirteStringToFile(Application.dataPath + "/StreamingAssets/AssetsAndroid/Version", "99.99.99.99");
+#endif
+    }
 
     [MenuItem("AssetBundle/热更相关")]
     public static void OpenCheckHotUpdateWindow()