Skip to content

Commit 1fbd874

Browse files
authored
Merge pull request #92 from AIO-GAME/1.x
1.x
2 parents adb0a34 + 83e507d commit 1fbd874

File tree

119 files changed

+1079
-9583
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+1079
-9583
lines changed

.github/upversion.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from tqdm import tqdm
99

1010

11-
def get_latest_github_tag(repo_url) -> str | None:
11+
def get_latest_github_tag(repo_url) -> str:
1212
# 从仓库 URL 提取用户和仓库名称
1313
repo_path = repo_url.split("https://github.com/")[1].replace(".git", "")
1414
print(f"Fetching tags from {repo_path}")
@@ -97,7 +97,7 @@ def read_local_email() -> str:
9797
return result.stdout.decode('utf-8').strip()
9898

9999

100-
def read_current_version() -> str | None:
100+
def read_current_version() -> str:
101101
try:
102102
subprocess.run(['git', 'fetch', '--tags'], check=True)
103103
tags = os.popen("git tag").read().split("\n")
@@ -136,6 +136,7 @@ def read_current_version() -> str | None:
136136
".github/*.py",
137137
".github/*.sh",
138138
".github/*.bat",
139+
"Tools/*",
139140
]
140141

141142
github = os.popen("git remote get-url origin").read().strip()
@@ -169,14 +170,15 @@ def read_current_version() -> str | None:
169170
current_version = package["version"]
170171
package["version"] = new_version
171172
f.seek(0)
173+
f.truncate()
172174
json.dump(package, f, indent=2)
173175
print("写入配置: 版本号 {0} -> {1}".format(current_version, new_version))
174176
f.close()
175177

176178
# 上传到远程仓库 捕获异常
177179
if current_version != new_version:
178180
try:
179-
subprocess.run(['git', 'pull'], check=True)
181+
subprocess.run(['git', 'pull', 'origin', current_branch], check=True)
180182
subprocess.run(['git', 'add', 'package.json'], check=True)
181183
subprocess.run(['git', 'commit', '-m', f"✨ up version {current_branch} -> {new_version}"], check=True)
182184
subprocess.run(['git', 'push', 'origin', current_branch], check=True)
@@ -243,6 +245,7 @@ def read_current_version() -> str | None:
243245
package = json.load(f)
244246
package["type"] = "module"
245247
f.seek(0)
248+
f.truncate()
246249
json.dump(package, f, indent=2)
247250
f.close()
248251

.gitmodules

Lines changed: 0 additions & 1 deletion
This file was deleted.

Editor.GUI.CLI/External/AIO.Graph/Window/GraphicWindow/EmptyGraphWindow.cs

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,15 @@ namespace AIO.UEditor
1111
/// <summary>
1212
/// 自定义窗口基类
1313
/// </summary>
14+
[PreferBinarySerialization]
1415
public abstract partial class EmptyGraphWindow : EditorWindow
1516
{
1617
/// <summary>
1718
/// 当前窗口中心点
1819
/// </summary>
1920
/// <param name="w">宽</param>
2021
/// <param name="h">高</param>
21-
protected EmptyGraphWindow(float w = 800, float h = 600)
22-
{
23-
minSize = new Vector2(w, h);
24-
}
22+
protected EmptyGraphWindow(float w = 800, float h = 600) { minSize = new Vector2(w, h); }
2523

2624
/// <summary>
2725
/// 当前窗口宽度
@@ -48,24 +46,14 @@ protected EmptyGraphWindow(float w = 800, float h = 600)
4846
/// </summary>
4947
public Rect ReliablePosition { get; private set; }
5048

51-
private void ModifierKeysChanged()
52-
{
53-
OnModifierKeysChanged();
54-
}
49+
private void ModifierKeysChanged() { OnModifierKeysChanged(); }
5550

56-
private void ShowButton(Rect rect)
57-
{
58-
OnShowButton(rect);
59-
}
51+
private void ShowButton(Rect rect) { OnShowButton(rect); }
6052

6153
/// <summary>
6254
/// 转化为信息字符串
6355
/// </summary>
64-
public sealed override string ToString()
65-
{
66-
return base.ToString();
67-
}
68-
56+
public sealed override string ToString() { return base.ToString(); }
6957

7058
/// <summary>
7159
/// 标记目标已改变
@@ -86,4 +74,4 @@ protected static void HasChanged(Object target)
8674
EditorSceneManager.MarkSceneDirty(component.gameObject.scene);
8775
}
8876
}
89-
}
77+
}

Editor.GUI.CLI/External/AIO.Plugins/PluginData.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ namespace AIO
1111
/// 插件信息
1212
/// </summary>
1313
[CreateAssetMenu(menuName = "Plugins/AIO Data", fileName = nameof(PluginData))]
14+
[PreferBinarySerialization]
1415
internal class PluginData : ScriptableObject
1516
{
1617
/// <summary>
@@ -40,4 +41,4 @@ internal class PluginData : ScriptableObject
4041
}
4142

4243
internal partial class Plugins { }
43-
}
44+
}

Editor.GUI.CLI/External/RainbowFolders.meta

Lines changed: 0 additions & 8 deletions
This file was deleted.

Editor.GUI.CLI/External/RainbowFolders/Borodar.RainbowCore.RList.Editor.meta

Lines changed: 0 additions & 8 deletions
This file was deleted.

Editor.GUI.CLI/External/RainbowFolders/Borodar.RainbowCore.RList.Editor/ReorderableDrawer.cs

Lines changed: 0 additions & 119 deletions
This file was deleted.

Editor.GUI.CLI/External/RainbowFolders/Borodar.RainbowCore.RList.Editor/ReorderableDrawer.cs.meta

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)