Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d909abe427
|
||
|
|
da25a40015
|
||
|
|
25f4cfb82e
|
No files matched your search
@@ -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>ShrinkCommand.Integration.App</AssemblyName>
|
<AssemblyName>ShrinkCommand.Integration.App</AssemblyName>
|
||||||
<RootNamespace>ShrinkCommand.Integration.App</RootNamespace>
|
<RootNamespace>ShrinkCommand.Integration.App</RootNamespace>
|
||||||
<PackageId>ShrinkSDK.Command.Integration.App</PackageId>
|
<PackageId>ShrinkSDK.Command.Integration.App</PackageId>
|
||||||
<Version>0.2.0</Version>
|
<Version>0.2.6</Version>
|
||||||
<Description>ShrinkCommand and App host integration.</Description>
|
<Description>ShrinkCommand and App host integration.</Description>
|
||||||
<ShrinkCodeGenEnabled>true</ShrinkCodeGenEnabled>
|
<ShrinkCodeGenEnabled>true</ShrinkCodeGenEnabled>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="..\Runtime\*.cs" />
|
<Compile Include="..\Runtime\*.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.App.Core" Version="0.2.0" />
|
<PackageReference Include="ShrinkSDK.App.Core" Version="0.2.4" />
|
||||||
<PackageReference Include="ShrinkSDK.Command" Version="0.3.0" />
|
<PackageReference Include="ShrinkSDK.Command" Version="0.4.3" />
|
||||||
<PackageReference Include="ShrinkSDK.CodeGen" Version="0.1.0" PrivateAssets="compile;runtime;contentfiles;native" />
|
<PackageReference Include="ShrinkSDK.CodeGen" Version="0.2.0" PrivateAssets="compile;runtime;contentfiles;native" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -23,3 +23,13 @@ var result = await command.ExecuteAsync(source, "help");
|
|||||||
- 本包不改变 `ShrinkCommand` 的原有 API。
|
- 本包不改变 `ShrinkCommand` 的原有 API。
|
||||||
- 静态命令的默认注册仍由 `ShrinkCommandRuntime.Default` 完成。
|
- 静态命令的默认注册仍由 `ShrinkCommandRuntime.Default` 完成。
|
||||||
- 运行时实例命令仍然走 `RegisterCommands(object target)`。
|
- 运行时实例命令仍然走 `RegisterCommands(object target)`。
|
||||||
|
|
||||||
|
## 可复用能力
|
||||||
|
|
||||||
|
<!-- shrink:capabilities -->
|
||||||
|
Capability: 把命令服务作为 Context 组件和应用服务门面提供
|
||||||
|
Aliases: 命令宿主 command app
|
||||||
|
Limits: 退役撤回门面;业务命令仍由 Command 实现
|
||||||
|
Extension: shrink.service.command 和原生组件
|
||||||
|
Evidence: [ShrinkCommandAppComponent](Runtime/ShrinkCommandAppComponent.cs)
|
||||||
|
<!-- /shrink:capabilities -->
|
||||||
+4
-4
@@ -1,14 +1,14 @@
|
|||||||
{
|
{
|
||||||
"name": "com.cneicy.shrink-command-integration-app",
|
"name": "com.cneicy.shrink-command-integration-app",
|
||||||
"version": "0.2.0",
|
"version": "0.2.6",
|
||||||
"displayName": "ShrinkCommand - App Integration",
|
"displayName": "ShrinkCommand - App Integration",
|
||||||
"description": "ShrinkCommand 与 ShrinkApp 的桥接层,把默认命令服务纳入统一宿主服务容器。",
|
"description": "ShrinkCommand 与 ShrinkApp 的桥接层,把默认命令服务纳入统一宿主服务容器。",
|
||||||
"unity": "2022.3",
|
"unity": "2022.3",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.cneicy.shrink-command": "0.3.0",
|
"com.cneicy.shrink-command": "0.4.3",
|
||||||
"com.cneicy.shrink-app-core": "0.2.0",
|
"com.cneicy.shrink-app-core": "0.2.4",
|
||||||
"com.cysharp.unitask": "2.5.10",
|
"com.cysharp.unitask": "2.5.10",
|
||||||
"com.cneicy.shrink-context-core": "0.2.0"
|
"com.cneicy.shrink-context-core": "0.3.1"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"command",
|
"command",
|
||||||
|
|||||||
Reference in new issue
Block a user