feat: add NuGet and Godot distribution
Publish NuGet packages / publish (push) Failing after 6s
Publish UPM package / publish (push) Successful in 6s

This commit is contained in:
2026-09-05 03:41:44 +08:00
parent 5fd9b258d7
commit 371e880b84
88 changed files with 4122 additions and 2 deletions
+7 -1
View File
@@ -1,5 +1,11 @@
# Shrink Shared CodeGen
Editor-only UPM 包,为引用 ShrinkCommand.Runtime、ShrinkNetwork.Runtime 或 ShrinkApp.Core.Runtime 的程序集生成程序集级注册表。
Unity Editor UPM 包,为引用 ShrinkCommand.Runtime、ShrinkNetwork.Runtime 或 ShrinkApp.Core.Runtime 的程序集生成程序集级注册表。
该包只通过 Cecil 按程序集名和类型全名读取元数据,不在 asmdef 或 UPM 层反向引用业务包。因此 App、Command、Network 可以依赖它而不形成循环依赖。运行时不包含此包代码。
`DotNet~` 包含同一 Cecil 织入核心、Roslyn Analyzer 和 `ShrinkSDK.CodeGen` MSBuild 包。Godot 或普通 .NET 项目引用 EventBus、Command、Network、App 等包后,会通过 `buildTransitive` 自动启用织入。
```powershell
dotnet add package ShrinkSDK.CodeGen --version 0.1.0
```