3 Commits
Author SHA1 Message Date
cneicy 798764f135 fix: download release SDK directly from Microsoft Blob
Publish NuGet packages / publish (push) Canceled after 2s
Publish UPM package / publish (push) Successful in 3s
2026-11-06 19:26:39 +08:00
cneicy 9a258e802b feat: update Godot integration and coordinated package dependencies 2026-11-06 19:13:18 +08:00
cneicy d6b1940982 chore: align SDK dependencies and document reusable capabilities
Publish UPM package / publish (push) Successful in 2s
Publish NuGet packages / publish (push) Successful in 4m11s
2026-09-29 10:14:44 +08:00
4 changed files with 21 additions and 10 deletions

No files matched your search

+2 -1
View File
@@ -63,7 +63,8 @@ jobs:
const release = metadata.releases.find(item => item.sdk?.version === sdkVersion); const release = metadata.releases.find(item => item.sdk?.version === sdkVersion);
const file = release?.sdk?.files?.find(item => item.rid === 'linux-x64' && item.name.endsWith('.tar.gz')); const file = release?.sdk?.files?.find(item => item.rid === 'linux-x64' && item.name.endsWith('.tar.gz'));
if (!file) throw new Error(`Linux x64 SDK archive not found for ${sdkVersion}`); if (!file) throw new Error(`Linux x64 SDK archive not found for ${sdkVersion}`);
const archiveResponse = await fetch(file.url); const archiveUrl = `https://dotnetcli.blob.core.windows.net/dotnet/Sdk/${sdkVersion}/dotnet-sdk-${sdkVersion}-linux-x64.tar.gz`;
const archiveResponse = await fetch(archiveUrl);
if (!archiveResponse.ok) throw new Error(`SDK download failed: ${archiveResponse.status}`); if (!archiveResponse.ok) throw new Error(`SDK download failed: ${archiveResponse.status}`);
await writeFile('/tmp/dotnet-sdk.tar.gz', new Uint8Array(await archiveResponse.arrayBuffer())); await writeFile('/tmp/dotnet-sdk.tar.gz', new Uint8Array(await archiveResponse.arrayBuffer()));
@@ -5,16 +5,16 @@
<AssemblyName>ShrinkDataSaver.Integration.EventBus</AssemblyName> <AssemblyName>ShrinkDataSaver.Integration.EventBus</AssemblyName>
<RootNamespace>ShrinkDataSaver.Integration</RootNamespace> <RootNamespace>ShrinkDataSaver.Integration</RootNamespace>
<PackageId>ShrinkSDK.DataSaver.Integration.EventBus</PackageId> <PackageId>ShrinkSDK.DataSaver.Integration.EventBus</PackageId>
<Version>2.2.0</Version> <Version>2.2.6</Version>
<Description>ShrinkDataSaver and EventBus integration.</Description> <Description>ShrinkDataSaver and EventBus integration.</Description>
<ShrinkCodeGenEnabled>false</ShrinkCodeGenEnabled> <ShrinkCodeGenEnabled>false</ShrinkCodeGenEnabled>
<Nullable>disable</Nullable> <Nullable>disable</Nullable>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Compile Include="..\*.cs" /> <Compile Include="..\*.cs" />
<PackageReference Include="ShrinkSDK.Runtime.Abstractions" Version="0.1.0" /> <PackageReference Include="ShrinkSDK.Runtime.Abstractions" Version="0.2.0" />
<PackageReference Include="ShrinkSDK.Context.Core" Version="0.2.0" /> <PackageReference Include="ShrinkSDK.Context.Core" Version="0.3.1" />
<PackageReference Include="ShrinkSDK.EventBus" Version="2.1.0" /> <PackageReference Include="ShrinkSDK.EventBus" Version="2.3.1" />
<PackageReference Include="ShrinkSDK.DataSaver" Version="2.3.0" /> <PackageReference Include="ShrinkSDK.DataSaver" Version="2.5.0" />
</ItemGroup> </ItemGroup>
</Project> </Project>
+10
View File
@@ -39,3 +39,13 @@ using var binding = EventBus.Attach(new SaveUiHandlers());
桥接方向是 DataSaver -> EventBus,发布使用 `EventBus.Post(...)`。没有手工 Delegate 注册或旧 Trigger API。 桥接方向是 DataSaver -> EventBus,发布使用 `EventBus.Post(...)`。没有手工 Delegate 注册或旧 Trigger API。
`SettingsChangedEvent.Get<T>()` 内部使用 `Convert.ChangeType`,只应在设置值确实可转换时调用。 `SettingsChangedEvent.Get<T>()` 内部使用 `Convert.ChangeType`,只应在设置值确实可转换时调用。
## 可复用能力
<!-- shrink:capabilities -->
Capability: 将存档、加载、迁移、删除和设置生命周期转为事件
Aliases: 存档事件 保存完成 加载结果
Limits: 事件只反馈存档行为;不会赋予订阅者写权限
Extension: 桥注册与撤回;类型化生命周期事件
Evidence: [DataSaverEventBusBridge](DataSaverEventBusBridge.cs)
<!-- /shrink:capabilities -->
+4 -4
View File
@@ -1,6 +1,6 @@
{ {
"name": "com.cneicy.shrink-datasaver-integration-eventbus", "name": "com.cneicy.shrink-datasaver-integration-eventbus",
"version": "2.2.0", "version": "2.2.6",
"displayName": "ShrinkDataSaver - EventBus Integration", "displayName": "ShrinkDataSaver - EventBus Integration",
"description": "ShrinkDataSaver 与 ShrinkEventBus 的桥接层,自动将存档/设置事件映射到事件总线。", "description": "ShrinkDataSaver 与 ShrinkEventBus 的桥接层,自动将存档/设置事件映射到事件总线。",
"unity": "2022.3", "unity": "2022.3",
@@ -8,10 +8,10 @@
"changelogUrl": "https://git.crash.work/ShrinkSDK/ShrinkDataSaver.Integration.EventBus/src/branch/main/CHANGELOG.md", "changelogUrl": "https://git.crash.work/ShrinkSDK/ShrinkDataSaver.Integration.EventBus/src/branch/main/CHANGELOG.md",
"licensesUrl": "https://github.com/cneicy/ShrinkDataSaver.Integration.EventBus/blob/main/LICENSE", "licensesUrl": "https://github.com/cneicy/ShrinkDataSaver.Integration.EventBus/blob/main/LICENSE",
"dependencies": { "dependencies": {
"com.cneicy.shrink-datasaver": "2.3.0", "com.cneicy.shrink-datasaver": "2.5.0",
"com.cneicy.shrink-context-core": "0.2.0", "com.cneicy.shrink-context-core": "0.3.1",
"com.cysharp.unitask": "2.5.10", "com.cysharp.unitask": "2.5.10",
"com.cneicy.shrink-eventbus": "2.1.0" "com.cneicy.shrink-eventbus": "2.3.1"
}, },
"keywords": [ "keywords": [
"save", "save",