修改
This commit is contained in:
parent
bf0d8340af
commit
0073cf807f
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 27f61e6762d146a0a331a670a8c203fc
|
||||
timeCreated: 1737090681
|
36
Editor/Constant/FrameworkAssetInitlized.cs
Normal file
36
Editor/Constant/FrameworkAssetInitlized.cs
Normal file
@ -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<FrameworkPublishSettings>();
|
||||
AssetDatabase.CreateAsset(publisherObject, publisherPath);
|
||||
}
|
||||
|
||||
if (!File.Exists(hotPath))
|
||||
{
|
||||
var hotObject = ScriptableObject.CreateInstance<FrameworkHotUpdateSettings>();
|
||||
AssetDatabase.CreateAsset(hotObject, hotPath);
|
||||
}
|
||||
|
||||
AssetDatabase.Refresh();
|
||||
}
|
||||
}
|
||||
}
|
3
Editor/Constant/FrameworkAssetInitlized.cs.meta
Normal file
3
Editor/Constant/FrameworkAssetInitlized.cs.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9e6620d843d745fba3213017d052d5e1
|
||||
timeCreated: 1739170824
|
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 54ef4f369757e0d4da4a7095678088b6
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -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
|
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: efd2da5560bdcde42a91ff632fccad20
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -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
|
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: db8426664259b2946b313fa434c0e847
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -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<string> HotUpdateAssemblies = new List<string>() { "GameBase.dll", "DotNet.dll", "GameProto.dll", "BattleCore.Runtime.dll", "GameLogic.dll" };
|
||||
public List<string> HotUpdateAssemblies = new List<string>() { "GameLib.dll", "GameProto.dll", "GameBase.dll", "GameLogic.dll" };
|
||||
|
||||
[Header("Need manual setting!")] public List<string> AOTMetaAssemblies = new List<string>() { "mscorlib.dll", "System.dll", "System.Core.dll" };
|
||||
|
||||
|
@ -10,10 +10,15 @@ namespace AlicizaX.Runtime
|
||||
public class FrameworkPublishSettings : ScriptableObject
|
||||
{
|
||||
[BoxGroup("版本配置", true)] [TableList(ShowIndexLabels = false, DrawScrollView = true, MaxScrollViewHeight = 200, AlwaysExpanded = true)]
|
||||
public List<RemoteURLConfigSetting> Configs = new List<RemoteURLConfigSetting>();
|
||||
public List<RemoteURLConfigSetting> Configs = new List<RemoteURLConfigSetting>
|
||||
{
|
||||
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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user