diff --git a/Editor/Constant/ComponentTargetAttribute.cs b/Editor/Constant/ComponentTargetAttribute.cs deleted file mode 100644 index 9cb585b..0000000 --- a/Editor/Constant/ComponentTargetAttribute.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; - -namespace AlicizaX.Editor -{ - [AttributeUsage(AttributeTargets.Class)] - public class ComponentTargetAttribute : Attribute - { - public Type Type; - - public ComponentTargetAttribute(Type type) - { - Type = type; - } - } -} \ No newline at end of file diff --git a/Editor/Constant/ComponentTargetAttribute.cs.meta b/Editor/Constant/ComponentTargetAttribute.cs.meta deleted file mode 100644 index 68b52a0..0000000 --- a/Editor/Constant/ComponentTargetAttribute.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 27f61e6762d146a0a331a670a8c203fc -timeCreated: 1737090681 \ No newline at end of file diff --git a/Editor/Constant/FrameworkAssetInitlized.cs b/Editor/Constant/FrameworkAssetInitlized.cs new file mode 100644 index 0000000..ca366cd --- /dev/null +++ b/Editor/Constant/FrameworkAssetInitlized.cs @@ -0,0 +1,36 @@ +using System.IO; +using AlicizaX.Runtime; +using UnityEditor; +using UnityEngine; + +namespace AlicizaX.Editor +{ + static class FrameworkAssetInitlized + { + [MenuItem("AlicizaX/初始化配置文件")] + static void Initlize() + { + string FloderPath = "Assets/Resources/"; + if (!Directory.Exists(FloderPath)) + { + Directory.CreateDirectory(FloderPath); + } + + string publisherPath = Path.Combine(FloderPath, "FrameworkPublishSettings.asset"); + string hotPath = Path.Combine(FloderPath, "FrameworkHotUpdateSettings.asset"); + if (!File.Exists(publisherPath)) + { + var publisherObject = ScriptableObject.CreateInstance(); + AssetDatabase.CreateAsset(publisherObject, publisherPath); + } + + if (!File.Exists(hotPath)) + { + var hotObject = ScriptableObject.CreateInstance(); + AssetDatabase.CreateAsset(hotObject, hotPath); + } + + AssetDatabase.Refresh(); + } + } +} diff --git a/Editor/Constant/FrameworkAssetInitlized.cs.meta b/Editor/Constant/FrameworkAssetInitlized.cs.meta new file mode 100644 index 0000000..7b502d4 --- /dev/null +++ b/Editor/Constant/FrameworkAssetInitlized.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 9e6620d843d745fba3213017d052d5e1 +timeCreated: 1739170824 \ No newline at end of file diff --git a/Resources.meta b/Resources.meta deleted file mode 100644 index 5e629ee..0000000 --- a/Resources.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 54ef4f369757e0d4da4a7095678088b6 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Resources/FrameworkHotUpdateSettings.asset b/Resources/FrameworkHotUpdateSettings.asset deleted file mode 100644 index f49e041..0000000 --- a/Resources/FrameworkHotUpdateSettings.asset +++ /dev/null @@ -1,30 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 7c0f00a264c34df985e6c6b6e3f8b353, type: 3} - m_Name: FrameworkHotUpdateSettings - m_EditorClassIdentifier: - HotUpdateAssemblies: - - GameLib.dll - - GameProto.dll - - GameBase.dll - - GameLogic.dll - AOTMetaAssemblies: - - mscorlib.dll - - System.dll - - System.Core.dll - - UnityEngine.CoreModule.dll - - YooAsset.Runtime.dll - - UniTask.Runtime.dll - - ZString.dll - LogicMainDllName: GameLogic.dll - AssemblyTextAssetExtension: .bytes - AssemblyTextAssetPath: AssetRaw/DLL diff --git a/Resources/FrameworkHotUpdateSettings.asset.meta b/Resources/FrameworkHotUpdateSettings.asset.meta deleted file mode 100644 index 299e7f2..0000000 --- a/Resources/FrameworkHotUpdateSettings.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: efd2da5560bdcde42a91ff632fccad20 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Resources/FrameworkPublishSettings.asset b/Resources/FrameworkPublishSettings.asset deleted file mode 100644 index 4a9c56b..0000000 --- a/Resources/FrameworkPublishSettings.asset +++ /dev/null @@ -1,22 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!114 &11400000 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 0} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 7f734b9c80c9475690a0edad9a7626bd, type: 3} - m_Name: FrameworkPublishSettings - m_EditorClassIdentifier: - Configs: - - Version_Type: Release - CheckUrl: http://127.0.0.1:8080/UpdateData.json - - Version_Type: Dev - CheckUrl: http://127.0.0.1:8080/UpdateData.json - - Version_Type: Test - CheckUrl: http://127.0.0.1:8080/UpdateData.json - AppStageType: Dev diff --git a/Resources/FrameworkPublishSettings.asset.meta b/Resources/FrameworkPublishSettings.asset.meta deleted file mode 100644 index 54ee0f0..0000000 --- a/Resources/FrameworkPublishSettings.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: db8426664259b2946b313fa434c0e847 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/Constant/FrameworkHotUpdateSettings.cs b/Runtime/Constant/FrameworkHotUpdateSettings.cs index 073240c..a296f49 100644 --- a/Runtime/Constant/FrameworkHotUpdateSettings.cs +++ b/Runtime/Constant/FrameworkHotUpdateSettings.cs @@ -23,7 +23,7 @@ public class FrameworkHotUpdateSettings : ScriptableObject } [Header("Auto sync with [HybridCLRGlobalSettings]")] [Tooltip("You should modify the file form file path [Assets/CustomHybridCLR/Settings/HybridCLRGlobalSettings.asset]")] - public List HotUpdateAssemblies = new List() { "GameBase.dll", "DotNet.dll", "GameProto.dll", "BattleCore.Runtime.dll", "GameLogic.dll" }; + public List HotUpdateAssemblies = new List() { "GameLib.dll", "GameProto.dll", "GameBase.dll", "GameLogic.dll" }; [Header("Need manual setting!")] public List AOTMetaAssemblies = new List() { "mscorlib.dll", "System.dll", "System.Core.dll" }; @@ -41,4 +41,4 @@ public class FrameworkHotUpdateSettings : ScriptableObject /// 程序集文本资产资源目录 /// public string AssemblyTextAssetPath = "AssetRaw/DLL"; -} \ No newline at end of file +} diff --git a/Runtime/Constant/FrameworkPublishSettings.cs b/Runtime/Constant/FrameworkPublishSettings.cs index 43409cf..c90f561 100644 --- a/Runtime/Constant/FrameworkPublishSettings.cs +++ b/Runtime/Constant/FrameworkPublishSettings.cs @@ -10,10 +10,15 @@ namespace AlicizaX.Runtime public class FrameworkPublishSettings : ScriptableObject { [BoxGroup("版本配置", true)] [TableList(ShowIndexLabels = false, DrawScrollView = true, MaxScrollViewHeight = 200, AlwaysExpanded = true)] - public List Configs = new List(); + public List Configs = new List + { + new RemoteURLConfigSetting() { Version_Type = "Release", CheckUrl = "http://127.0.0.1:8080/UpdateData.json" }, + new RemoteURLConfigSetting() { Version_Type = "Dev", CheckUrl = "http://127.0.0.1:8080/UpdateData.json" }, + new RemoteURLConfigSetting() { Version_Type = "Test", CheckUrl = "http://127.0.0.1:8080/UpdateData.json" }, + }; [BoxGroup("版本配置", true)] [LabelText("当前版本")] [ValueDropdown("GetAllType", ExpandAllMenuItems = true)] [SerializeField] - public string AppStageType; + public string AppStageType = "Dev"; public RemoteURLConfigSetting GetConfig() { @@ -36,4 +41,4 @@ namespace AlicizaX.Runtime public string CheckUrl = ""; } -} \ No newline at end of file +}