添加GC-SAVEDOG项目,降低隐患
This commit is contained in:
1 parent
791db4fe12
commit
2f3a8682c9
54 files changed
+3642
-320
No files matched your search
+55
-18
@@ -21,7 +21,7 @@ model/
|
||||
_engine/ # 共享引擎源码
|
||||
src/ # CelestialView / PlanetTexture / EarthModelView / SphereRaster…
|
||||
PreviewGen/ # 用模型渲染器生成封面的小工具
|
||||
VersionStamp/ # 按内容指纹自动打版本、生成 version.json
|
||||
VersionStamp/ # 生成 version.json(手写版本 + 完整性哈希)
|
||||
<模型 id>/
|
||||
<模型 id>.json # 清单:名称、i18n、版本、程序集入口、封面
|
||||
src/ # 模型自己的源码(csproj + IModelFactory 实现)
|
||||
@@ -34,22 +34,34 @@ model/
|
||||
i18n/en.json
|
||||
```
|
||||
|
||||
## 版本是自动改的
|
||||
## 版本、指纹与完整性
|
||||
|
||||
`./build.sh models`(或 `./build.sh stamp`)会调用 `model/_engine/VersionStamp`:
|
||||
|
||||
1. 对每个模型,把 `<id>.json`(去掉 `version` / `updatedAt`)与 `<id>.model/` 下所有文件
|
||||
按路径排序做 SHA-256 指纹,得到版本号 `1.0-<10位指纹>`;
|
||||
2. 把这个版本写回 `<id>.json` 的 `version` 与 `updatedAt`;
|
||||
3. 生成仓库根 `version.json` 和 `model/version.json`(内容相同),里面记录
|
||||
启动器版本、各平台更新包地址、每个模型的 id / 版本 / 仓库目录。
|
||||
1. 读每个模型的 `<id>.json`,**保留作者手写的 `version`**(如 `1.6`)——
|
||||
版本号是对用户可见的语义版本,不由指纹自动覆盖;
|
||||
2. 计算 `build`:`<id>.json`(去掉 `build` / `updatedAt`)与 `<id>.model/` 下所有文件
|
||||
按路径排序后的 SHA-256 指纹前 10 位,**仅用于构建溯源**;
|
||||
3. 计算完整性哈希(客户端下载后会复算,不一致就丢弃):
|
||||
- `manifestSha256` = 清单文件本身的 sha256
|
||||
- `filesSha256` = `<id>.model` 目录指纹
|
||||
4. 生成仓库根 `version.json` 与 `model/version.json`(内容相同),再用
|
||||
`.signing/gc-signing.pem` 签名(ECDSA P-256),两份文件写的是**同一份签名**。
|
||||
|
||||
**所以只要改了模型文件,版本号就自动变**,不需要手工维护;内容没变时重复构建版本号保持不变。
|
||||
客户端启动时读 `version.json`,和 `.GC/settings.json` 里记录的版本一比对就知道要不要下载。
|
||||
**改了模型内容必须手动升 `version`**,否则客户端认为版本没变,不会下载。
|
||||
(`build` 会变,但它不参与版本比较。)
|
||||
|
||||
> 改了 `scene.json` 或引擎源码后,跑 `./build.sh models`,再把 `version.json` 和 `model/`
|
||||
> 推送到 gitcode;客户端下次启动会下载新模型并**本次启动立即生效**。
|
||||
> 启动器自身更新包由 `./build.sh publish` 生成(`dist/GC-<rid>.zip`),下载后**下次启动才应用**。
|
||||
哈希算法(构建端与客户端共用 `GC/src/Security/ContentHash.cs`,不会出现两套实现):
|
||||
|
||||
```
|
||||
fileHash = SHA256(文件字节)
|
||||
dirHash = SHA256( 按相对路径 ordinal 升序,对每个文件拼接 "<相对路径>\0<fileHash>\n" )
|
||||
```
|
||||
|
||||
相对路径统一 `/`,跳过 `.` 开头文件、`bin/`、`obj/`、`*.user`;不含时间戳/权限位。
|
||||
|
||||
安装成功后客户端会在模型目录写 `<id>.integrity.json`,每次加载 dll 前抽查
|
||||
dll / json 的哈希 —— 本地文件被替换会直接拒绝加载。
|
||||
|
||||
## `<id>.json`(模型清单,启动器只读它)
|
||||
|
||||
@@ -60,24 +72,45 @@ model/
|
||||
"nameI18n": { "zh-CN": "地球自转", "en": "Earth Rotation" },
|
||||
"description": "……",
|
||||
"descriptionI18n": { "zh-CN": "……", "en": "……" },
|
||||
"version": "1.0-3f9a2c1b7d",
|
||||
"updatedAt": "2026-11-07T08:00:00Z",
|
||||
"version": "1.6",
|
||||
"updatedAt": "2026-11-14T08:00:00Z",
|
||||
"author": "NeoRF",
|
||||
"tags": ["astronomy", "geography"],
|
||||
"assembly": "EarthRotationModel.dll",
|
||||
"type": "NeoRF.EarthModels.RotationModelFactory",
|
||||
"preview": "preview.png",
|
||||
"apiVersion": 1
|
||||
"apiVersion": 1,
|
||||
"minAppVersion": "1.0.7"
|
||||
}
|
||||
```
|
||||
|
||||
| 字段 | 作用 |
|
||||
| --- | --- |
|
||||
| `version` | **自动生成**,模型包内容指纹;客户端靠它判断是否需要更新 |
|
||||
| `version` | **作者手写**的语义版本;客户端靠它判断是否需要更新 |
|
||||
| `assembly` | 功能程序集文件名,相对 `<id>.model`;留空按 `<id>.dll` 找 |
|
||||
| `type` | 实现 `IModelFactory` 的完整类型名;留空则自动找第一个实现 |
|
||||
| `preview` | 封面图,默认 `preview.png` |
|
||||
| `apiVersion` | 模型契约版本,目前为 1 |
|
||||
| `apiVersion` | 模型契约版本,目前为 1;高于启动器支持版本会拒绝加载并提示升级 |
|
||||
| `minAppVersion` | 可选,要求的最低启动器版本(如 `1.0.7`) |
|
||||
|
||||
`build` / `manifestSha256` / `filesSha256`(只出现在 `version.json` 里)由构建自动写入,
|
||||
**不要手改**。
|
||||
|
||||
## 最小可分发结构
|
||||
|
||||
一个能跑的最小模型只需要三个文件:
|
||||
|
||||
```
|
||||
model/hello/
|
||||
hello.json # 清单(id / version / assembly / type / apiVersion)
|
||||
hello.model/
|
||||
HelloModel.dll # 实现 IModelFactory,返回任意 Avalonia 控件
|
||||
```
|
||||
|
||||
其余(`preview.png`、`i18n/`、`scene.json`、`land.json`)都是可选的:
|
||||
没有封面用默认灰图,没有语言包用清单里的 `name` / `description`。
|
||||
源码放在同目录的 `src/` 里,`./build.sh models` 会自动编译并把 dll 复制进 `hello.model/`。
|
||||
|
||||
|
||||
## 模型契约(model/_sdk)
|
||||
|
||||
@@ -152,5 +185,9 @@ public interface IModelContext
|
||||
|
||||
- **自动更新(推荐)**:把 `version.json` 和 `model/` 推到 gitcode 仓库,启动器开机自检并下载到 `.GC/model/`
|
||||
- **离线源**:把整个仓库目录(含 `version.json` + `model/`)拷到 U 盘 / 共享盘,
|
||||
在 `.GC/settings.json` 填 `updateLocalRoot` 指向它
|
||||
在 `.GC/config/settings.json` 填 `updateLocalRoot` 指向它
|
||||
- **手动导入**:在「下载」页粘贴任意 git 仓库 / zip / 本地目录,读取其中的 `model/` 文件夹
|
||||
|
||||
> 三种方式都会**验签**:`version.json` 必须由受信任私钥签名,否则客户端拒绝安装。
|
||||
> 自己维护分支时,用 `dotnet run --project GC-SAVEDOG -- keygen` 生成密钥,
|
||||
> 把公钥加进 `GC/src/Security/SignatureKeyring.cs`,再用 `--sign`/`build.sh stamp` 签名。
|
||||
@@ -3,6 +3,7 @@ using System.Text;
|
||||
using System.Text.Encodings.Web;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Nodes;
|
||||
using GC.Services;
|
||||
|
||||
// VersionStamp:构建时自动给模型打版本。
|
||||
// 用法:dotnet run --project model/_engine/VersionStamp -- <仓库根> <启动器版本>
|
||||
@@ -12,8 +13,15 @@ using System.Text.Json.Nodes;
|
||||
// 仓库地址(编译产物的 Release 也发在这里):与启动器默认 updateRepository 保持一致。
|
||||
const string Repository = "https://gitcode.com/Morris_1/GC";
|
||||
|
||||
var root = args.Length > 0 ? Path.GetFullPath(args[0]) : Directory.GetCurrentDirectory();
|
||||
var launcherVersion = args.Length > 1 && !string.IsNullOrWhiteSpace(args[1]) ? args[1] : "1.0.0";
|
||||
// 位置参数:<仓库根> <启动器版本>;开关:--launcher-only
|
||||
// --launcher-only 只刷新 launcher.packages(构建脚本在打完 zip 之后再调一次),
|
||||
// 不重算模型指纹 —— 模型文件可能有几百 MB,重复哈希纯属浪费。
|
||||
var positional = args.Where(a => !a.StartsWith("--", StringComparison.Ordinal)).ToArray();
|
||||
var launcherOnly = args.Any(a => a.Equals("--launcher-only", StringComparison.OrdinalIgnoreCase));
|
||||
|
||||
var root = positional.Length > 0 ? Path.GetFullPath(positional[0]) : Directory.GetCurrentDirectory();
|
||||
var launcherVersion = positional.Length > 1 && !string.IsNullOrWhiteSpace(positional[1])
|
||||
? positional[1] : "1.0.0";
|
||||
var modelRoot = Path.Combine(root, "model");
|
||||
|
||||
if (!Directory.Exists(modelRoot))
|
||||
@@ -49,8 +57,11 @@ static string Fingerprint(IEnumerable<byte[]> chunks)
|
||||
return Convert.ToHexString(hash.GetHashAndReset()).ToLowerInvariant();
|
||||
}
|
||||
|
||||
var models = new List<Dictionary<string, object>>();
|
||||
|
||||
if (!launcherOnly)
|
||||
{
|
||||
Console.WriteLine("==> 自动计算模型版本(按模型包内容指纹)");
|
||||
var models = new List<Dictionary<string, string>>();
|
||||
|
||||
foreach (var dir in Directory.GetDirectories(modelRoot)
|
||||
.OrderBy(p => Path.GetFileName(p), StringComparer.Ordinal))
|
||||
@@ -70,8 +81,11 @@ foreach (var dir in Directory.GetDirectories(modelRoot)
|
||||
var declared = manifest["version"]?.GetValue<string>();
|
||||
var version = string.IsNullOrWhiteSpace(declared) ? "1.0" : declared!.Trim();
|
||||
|
||||
// 内容指纹保留在 build 字段,仅用于构建溯源,不参与版本比较
|
||||
// 内容指纹保留在 build 字段,仅用于构建溯源,不参与版本比较。
|
||||
// 注意:updatedAt / build 都是构建元数据,必须从指纹里剔除,
|
||||
// 否则「同一份内容」每次构建都会算出不同指纹(等于每次都触发更新)。
|
||||
manifest.Remove("build");
|
||||
manifest.Remove("updatedAt");
|
||||
var canonical = manifest.ToJsonString(new JsonSerializerOptions { WriteIndented = false });
|
||||
var chunks = new List<byte[]> { Encoding.UTF8.GetBytes(canonical) };
|
||||
foreach (var file in Directory.GetFiles(dataDir, "*", SearchOption.AllDirectories)
|
||||
@@ -86,17 +100,29 @@ foreach (var dir in Directory.GetDirectories(modelRoot)
|
||||
manifest["version"] = version;
|
||||
manifest["build"] = fingerprint;
|
||||
manifest["updatedAt"] = DateTime.UtcNow.ToString("yyyy-MM-ddTHH:mm:ssZ");
|
||||
File.WriteAllText(manifestPath, manifest.ToJsonString(relaxed) + "\n");
|
||||
var manifestText = manifest.ToJsonString(relaxed) + "\n";
|
||||
File.WriteAllText(manifestPath, manifestText);
|
||||
|
||||
models.Add(new Dictionary<string, string>
|
||||
// 完整性哈希:客户端下载后按同一算法复算,不一致就丢弃。
|
||||
// manifestSha256 = 清单文件本身的 sha256
|
||||
// filesSha256 = <id>.model 目录指纹(算法见 GC/src/Security/ContentHash.cs)
|
||||
var manifestSha = ContentHash.Sha256Hex(manifestText);
|
||||
var filesMap = ContentHash.MapFiles(dataDir);
|
||||
var filesSha = ContentHash.DirectoryHash(filesMap);
|
||||
|
||||
models.Add(new Dictionary<string, object>
|
||||
{
|
||||
["id"] = id,
|
||||
["version"] = version,
|
||||
["build"] = fingerprint,
|
||||
["manifestSha256"] = manifestSha,
|
||||
["filesSha256"] = filesSha,
|
||||
["files"] = filesMap.Count,
|
||||
["dir"] = "model/" + id
|
||||
});
|
||||
Console.WriteLine($" {id,-20} {version,-8} (build {fingerprint})");
|
||||
Console.WriteLine($" {id,-20} {version,-8} (build {fingerprint}, {filesMap.Count} files)");
|
||||
}
|
||||
} // !launcherOnly
|
||||
|
||||
// 启动器源码指纹(只展示,不触发升级;升级看 launcher.version)
|
||||
var srcRoot = Path.Combine(root, "src");
|
||||
@@ -119,24 +145,45 @@ if (Directory.Exists(srcRoot))
|
||||
var launcherRevision = srcChunks.Count > 0 ? Fingerprint(srcChunks)[..10] : "";
|
||||
|
||||
var packages = new Dictionary<string, Dictionary<string, object>>();
|
||||
// 启动器更新只访问「编译的产物」:gitcode Release 里发布的 dist/GC-<rid>.zip 附件。
|
||||
// 运行时若存在同名 Release,GitCodeReleaseRemote 会用附件真实直链覆盖下面的 url;
|
||||
// 下面的地址是兜底(编译产物尚未发 Release 时也能指向正确的编译产物位置)。
|
||||
// 启动器更新包的两种落点,清单里都写清楚,下载端按顺序尝试:
|
||||
// 1) Release 附件(url)—— 常规发布方式;
|
||||
// 2) 仓库里的编译产物 dist/<系统>-<架构>/GC-<版本>-<系统>-<架构>.zip ——
|
||||
// 不发 Release、只提交产物也能更新(用户明确要求支持这种布局)。
|
||||
// 两种都写:url 只是「去哪儿找」,真正的完整性凭据是下面的 sha256(受签名保护)。
|
||||
var releaseBase = $"{Repository}/releases/download/v{launcherVersion}";
|
||||
foreach (var rid in new[] { "win-x64", "win-arm64", "osx-arm64", "osx-x64", "linux-x64" })
|
||||
{
|
||||
var label = LauncherArtifacts.LabelOf(rid);
|
||||
var fileName = LauncherArtifacts.PackageFileName(launcherVersion, rid);
|
||||
var dir = $"dist/{label}";
|
||||
|
||||
var entry = new Dictionary<string, object>
|
||||
{
|
||||
["path"] = $"dist/GC-{rid}.zip",
|
||||
["url"] = $"{releaseBase}/GC-{rid}.zip"
|
||||
["path"] = $"{dir}/{fileName}",
|
||||
["dir"] = dir,
|
||||
["name"] = fileName,
|
||||
["url"] = $"{releaseBase}/{fileName}"
|
||||
};
|
||||
// 已生成的启动器更新包:把校验值和体积写进清单,供下载端校验
|
||||
var zipPath = Path.Combine(root, "dist", $"GC-{rid}.zip");
|
||||
if (File.Exists(zipPath))
|
||||
|
||||
// 优先认平台产物目录,其次认 dist 根目录(历史构建把 zip 直接放在 dist/)
|
||||
var zipPath = new[]
|
||||
{
|
||||
Path.Combine(root, dir.Replace('/', Path.DirectorySeparatorChar), fileName),
|
||||
Path.Combine(root, "dist", fileName),
|
||||
Path.Combine(root, "dist", $"GC-{rid}.zip")
|
||||
}.FirstOrDefault(File.Exists);
|
||||
|
||||
if (zipPath != null)
|
||||
{
|
||||
var bytes = File.ReadAllBytes(zipPath);
|
||||
entry["path"] = Rel(root, zipPath);
|
||||
entry["sha256"] = Convert.ToHexString(SHA256.HashData(bytes)).ToLowerInvariant();
|
||||
entry["size"] = bytes.LongLength;
|
||||
Console.WriteLine($" 包 {label,-12} {entry["path"]}({bytes.LongLength / 1024 / 1024} MB)");
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine($" 包 {label,-12} 未找到产物(清单里不会有 sha256,下载端会跳过该平台)");
|
||||
}
|
||||
packages[rid] = entry;
|
||||
}
|
||||
@@ -157,8 +204,26 @@ var versionDoc = new Dictionary<string, object>
|
||||
["models"] = models
|
||||
};
|
||||
|
||||
// --launcher-only:模型段沿用现有清单,只换启动器包,避免重复哈希几百 MB 模型文件
|
||||
if (launcherOnly)
|
||||
{
|
||||
var manifestPath = Path.Combine(root, "version.json");
|
||||
if (File.Exists(manifestPath))
|
||||
{
|
||||
var existing = JsonNode.Parse(File.ReadAllText(manifestPath))?.AsObject();
|
||||
if (existing?["models"] is JsonNode existingModels)
|
||||
versionDoc["models"] = existingModels.DeepClone();
|
||||
if (existing?["generated"] is JsonNode generated)
|
||||
versionDoc["generated"] = generated.DeepClone();
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.Error.WriteLine("!! --launcher-only 需要已存在的 version.json,退回完整模式");
|
||||
}
|
||||
}
|
||||
|
||||
var json = JsonSerializer.Serialize(versionDoc, relaxed) + "\n";
|
||||
File.WriteAllText(Path.Combine(root, "version.json"), json);
|
||||
File.WriteAllText(Path.Combine(modelRoot, "version.json"), json);
|
||||
Console.WriteLine($"==> version.json 已生成(启动器 {launcherVersion},模型 {models.Count} 个)");
|
||||
Console.WriteLine($"==> version.json 已更新(启动器 {launcherVersion},模型 {models.Count} 个)");
|
||||
return 0;
|
||||
@@ -8,5 +8,11 @@
|
||||
<AssemblyName>VersionStamp</AssemblyName>
|
||||
<RootNamespace>VersionStamp</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<!-- 与启动器 / SAVEDOG 共用同一份哈希实现,保证"构建端算的"和"客户端验的"完全一致 -->
|
||||
<Compile Include="..\..\..\GC\src\Security\ContentHash.cs" Link="Shared\ContentHash.cs" />
|
||||
<!-- 平台标签与 dist 目录推导也共用:构建端写进清单的路径,必须和下载端找的路径一致 -->
|
||||
<Compile Include="..\..\..\GC-DOWNLOAD\LauncherArtifacts.cs" Link="Shared\LauncherArtifacts.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -9,7 +9,12 @@ namespace GC.ModelSdk;
|
||||
/// </summary>
|
||||
public interface IModelFactory
|
||||
{
|
||||
/// <summary>契约版本。启动器目前支持 1。</summary>
|
||||
/// <summary>
|
||||
/// 契约版本。启动器目前支持 <b>1</b>。
|
||||
/// 协商规则:必须与启动器支持的版本**相等**,否则启动器拒绝加载并提示用户更新;
|
||||
/// 模型清单里还可以写 <c>minAppVersion</c> 要求更高的启动器版本。
|
||||
/// 提升版本时必须保留旧接口的适配层,避免老客户端加载新模型后崩溃。
|
||||
/// </summary>
|
||||
int ApiVersion { get; }
|
||||
|
||||
/// <summary>创建一个模型运行时实例(每个窗口一个实例)。</summary>
|
||||
@@ -19,6 +24,10 @@ public interface IModelFactory
|
||||
/// <summary>
|
||||
/// 模型运行时:负责把模型自己的界面交给启动器。
|
||||
/// 启动器只负责开窗口,**不参与任何渲染**。
|
||||
///
|
||||
/// 生命周期:<c>Create()</c> → <c>Prepare()</c>(后台线程,一次)→ <c>CreateView()</c>(UI 线程,一次)
|
||||
/// → 用户关窗 → <c>Dispose()</c>(UI 线程)。<c>Dispose</c> 之后不要再调用任何
|
||||
/// <see cref="IModelContext"/> 成员。
|
||||
/// </summary>
|
||||
public interface IModelRuntime : IDisposable
|
||||
{
|
||||
@@ -54,15 +63,15 @@ public interface IModelContext
|
||||
/// <summary>用户在设置里分配的运行内存预算(MB),模型可据此控制缓存规模。</summary>
|
||||
int MemoryBudgetMb { get; }
|
||||
|
||||
/// <summary>请求关闭承载此模型的窗口。</summary>
|
||||
/// <summary>请求关闭承载此模型的窗口。**线程安全**,任意线程可调用。</summary>
|
||||
void RequestClose();
|
||||
|
||||
/// <summary>
|
||||
/// 汇报加载进度(0–1)与当前阶段文案。启动器的加载进度条会实时显示,
|
||||
/// 也可以在任何时候调用(例如切换数据集时)。
|
||||
/// 也可以在任何时候调用(例如切换数据集时)。**线程安全**,任意线程可调用。
|
||||
/// </summary>
|
||||
void ReportProgress(double value, string? message = null);
|
||||
|
||||
/// <summary>输出日志(启动器会写到控制台)。</summary>
|
||||
/// <summary>输出日志(启动器会写到控制台)。**线程安全**,任意线程可调用。</summary>
|
||||
void Log(string message);
|
||||
}
|
||||
@@ -25,6 +25,6 @@
|
||||
"button": "#9FB4D4",
|
||||
"frame": "#0A1524"
|
||||
},
|
||||
"updatedAt": "2026-11-14T10:53:39Z",
|
||||
"build": "d3eb662a36"
|
||||
"build": "e4b3f2b87e",
|
||||
"updatedAt": "2026-11-14T11:34:35Z"
|
||||
}
|
||||
@@ -18,7 +18,6 @@
|
||||
],
|
||||
"dataDir": "earth-geography.model",
|
||||
"version": "1.8",
|
||||
"updatedAt": "2026-11-14T10:53:39Z",
|
||||
"chrome": {
|
||||
"titleBar": "#0C1828",
|
||||
"titleBorder": "#1B2740",
|
||||
@@ -26,5 +25,6 @@
|
||||
"button": "#9FB4D4",
|
||||
"frame": "#0A1524"
|
||||
},
|
||||
"build": "d5ad961ed1"
|
||||
"build": "3b645c45c2",
|
||||
"updatedAt": "2026-11-14T11:34:35Z"
|
||||
}
|
||||
@@ -24,7 +24,6 @@
|
||||
"preview": "preview.png",
|
||||
"apiVersion": 1,
|
||||
"version": "1.6",
|
||||
"updatedAt": "2026-11-14T10:53:39Z",
|
||||
"chrome": {
|
||||
"titleBar": "#0C1828",
|
||||
"titleBorder": "#1B2740",
|
||||
@@ -32,5 +31,6 @@
|
||||
"button": "#9FB4D4",
|
||||
"frame": "#0A1524"
|
||||
},
|
||||
"build": "287b1d86af"
|
||||
"build": "947efa36bb",
|
||||
"updatedAt": "2026-11-14T11:34:35Z"
|
||||
}
|
||||
@@ -24,7 +24,6 @@
|
||||
"preview": "preview.png",
|
||||
"apiVersion": 1,
|
||||
"version": "1.6",
|
||||
"updatedAt": "2026-11-14T10:53:39Z",
|
||||
"chrome": {
|
||||
"titleBar": "#0C1828",
|
||||
"titleBorder": "#1B2740",
|
||||
@@ -32,5 +31,6 @@
|
||||
"button": "#9FB4D4",
|
||||
"frame": "#0A1524"
|
||||
},
|
||||
"build": "83124cb2ac"
|
||||
"build": "a803d9c020",
|
||||
"updatedAt": "2026-11-14T11:34:35Z"
|
||||
}
|
||||
@@ -25,7 +25,6 @@
|
||||
"preview": "preview.png",
|
||||
"apiVersion": 1,
|
||||
"version": "1.5",
|
||||
"updatedAt": "2026-11-14T10:53:39Z",
|
||||
"chrome": {
|
||||
"titleBar": "#FFFFFF",
|
||||
"titleBorder": "#E3E8F3",
|
||||
@@ -33,5 +32,6 @@
|
||||
"button": "#5B6A86",
|
||||
"frame": "#F4F6FB"
|
||||
},
|
||||
"build": "b8930576fd"
|
||||
"build": "02a555272a",
|
||||
"updatedAt": "2026-11-14T11:34:35Z"
|
||||
}
|
||||
+55
-17
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"generated": "2026-11-14T10:53:39Z",
|
||||
"generated": "2026-11-14T11:34:35Z",
|
||||
"repository": "https://gitcode.com/Morris_1/GC",
|
||||
"branch": "main",
|
||||
"modelDir": "model",
|
||||
@@ -9,24 +9,40 @@
|
||||
"revision": "",
|
||||
"packages": {
|
||||
"win-x64": {
|
||||
"path": "dist/GC-win-x64.zip",
|
||||
"url": "https://gitcode.com/Morris_1/GC/releases/download/v1.0.7/GC-win-x64.zip"
|
||||
"path": "dist/win-amd64/GC-1.0.7-win-amd64.zip",
|
||||
"dir": "dist/win-amd64",
|
||||
"name": "GC-1.0.7-win-amd64.zip",
|
||||
"url": "https://gitcode.com/Morris_1/GC/releases/download/v1.0.7/GC-1.0.7-win-amd64.zip",
|
||||
"sha256": "f90ff51ac6b041ae238cbeb4672622b0d029142a9d8b0705f08e654336512308",
|
||||
"size": 46363183
|
||||
},
|
||||
"win-arm64": {
|
||||
"path": "dist/GC-win-arm64.zip",
|
||||
"url": "https://gitcode.com/Morris_1/GC/releases/download/v1.0.7/GC-win-arm64.zip"
|
||||
"path": "dist/win-arm64/GC-1.0.7-win-arm64.zip",
|
||||
"dir": "dist/win-arm64",
|
||||
"name": "GC-1.0.7-win-arm64.zip",
|
||||
"url": "https://gitcode.com/Morris_1/GC/releases/download/v1.0.7/GC-1.0.7-win-arm64.zip",
|
||||
"sha256": "0b2bab2c3ac7e6223d8dd0b0faf9a0994319fa5ad13826addf7b402619b812e0",
|
||||
"size": 44390354
|
||||
},
|
||||
"osx-arm64": {
|
||||
"path": "dist/GC-osx-arm64.zip",
|
||||
"url": "https://gitcode.com/Morris_1/GC/releases/download/v1.0.7/GC-osx-arm64.zip"
|
||||
"path": "dist/mac-arm64/GC-1.0.7-mac-arm64.zip",
|
||||
"dir": "dist/mac-arm64",
|
||||
"name": "GC-1.0.7-mac-arm64.zip",
|
||||
"url": "https://gitcode.com/Morris_1/GC/releases/download/v1.0.7/GC-1.0.7-mac-arm64.zip",
|
||||
"sha256": "e5fd355bace68dc0794eb3e049cbef63c952a60a765ab3806adaf1199e1b09ab",
|
||||
"size": 9178314
|
||||
},
|
||||
"osx-x64": {
|
||||
"path": "dist/GC-osx-x64.zip",
|
||||
"url": "https://gitcode.com/Morris_1/GC/releases/download/v1.0.7/GC-osx-x64.zip"
|
||||
"path": "dist/mac-x64/GC-1.0.7-mac-x64.zip",
|
||||
"dir": "dist/mac-x64",
|
||||
"name": "GC-1.0.7-mac-x64.zip",
|
||||
"url": "https://gitcode.com/Morris_1/GC/releases/download/v1.0.7/GC-1.0.7-mac-x64.zip"
|
||||
},
|
||||
"linux-x64": {
|
||||
"path": "dist/GC-linux-x64.zip",
|
||||
"url": "https://gitcode.com/Morris_1/GC/releases/download/v1.0.7/GC-linux-x64.zip"
|
||||
"path": "dist/linux-amd64/GC-1.0.7-linux-amd64.zip",
|
||||
"dir": "dist/linux-amd64",
|
||||
"name": "GC-1.0.7-linux-amd64.zip",
|
||||
"url": "https://gitcode.com/Morris_1/GC/releases/download/v1.0.7/GC-1.0.7-linux-amd64.zip"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -34,32 +50,54 @@
|
||||
{
|
||||
"id": "contour-map",
|
||||
"version": "1.0",
|
||||
"build": "d3eb662a36",
|
||||
"build": "e4b3f2b87e",
|
||||
"manifestSha256": "ee0897d46ee85126fbfd0d07f5ca3111950d0c36f9b8a80e4eb6ae85d226da4f",
|
||||
"filesSha256": "b1f323fb41dec4f45992a30ff8726f3307f83b564127aff99bcb3d044c79d2bd",
|
||||
"files": 5,
|
||||
"dir": "model/contour-map"
|
||||
},
|
||||
{
|
||||
"id": "earth-geography",
|
||||
"version": "1.8",
|
||||
"build": "d5ad961ed1",
|
||||
"build": "3b645c45c2",
|
||||
"manifestSha256": "a9f30fd4a1dd0aeccb88c892579c93bf32a92379d7b3f545b28f6cac612f9871",
|
||||
"filesSha256": "0e55d2f9bacc3e0ff42f5c45d9e7c265864df9784b1609c09dcb32d21b4addfc",
|
||||
"files": 11,
|
||||
"dir": "model/earth-geography"
|
||||
},
|
||||
{
|
||||
"id": "earth-revolution",
|
||||
"version": "1.6",
|
||||
"build": "287b1d86af",
|
||||
"build": "947efa36bb",
|
||||
"manifestSha256": "feb715cde8ad5da9ecfb48785a95e6fc82930cc92c668514b328915366c2f57a",
|
||||
"filesSha256": "a37e0b493c78bb0a04a276512b612be3f8e7a178ed1a7fc72acb5353aa57f7c5",
|
||||
"files": 7,
|
||||
"dir": "model/earth-revolution"
|
||||
},
|
||||
{
|
||||
"id": "earth-rotation",
|
||||
"version": "1.6",
|
||||
"build": "83124cb2ac",
|
||||
"build": "a803d9c020",
|
||||
"manifestSha256": "56ed397cbc008bd9ec8bea0ee34a94a28ab29ce39a8b096b0629e529883b4dff",
|
||||
"filesSha256": "4e4428812d18d15a99105e73c027b99f3197033f0138d643ba69c15fabc9d8f6",
|
||||
"files": 7,
|
||||
"dir": "model/earth-rotation"
|
||||
},
|
||||
{
|
||||
"id": "scale-calculator",
|
||||
"version": "1.5",
|
||||
"build": "b8930576fd",
|
||||
"build": "02a555272a",
|
||||
"manifestSha256": "d00034888d9b9da03338b7f394d1bdf33f73b1fbdd7e8f154d85b9080318ab13",
|
||||
"filesSha256": "4a5fbf898df1d98eddf68b5d3929ae7b25cd7bcdfdfa36b5ad0ed72d9941d049",
|
||||
"files": 6,
|
||||
"dir": "model/scale-calculator"
|
||||
}
|
||||
]
|
||||
],
|
||||
"signature": {
|
||||
"alg": "ECDSA-P256-SHA256",
|
||||
"keyId": "gc-2026-11",
|
||||
"value": "LHaF2bw+IZeWUw2qLQM1IQHoNXsHNko38dyjP45Jy41KtlyhvJhhFaNh+THKhAU+6jSzV1eFHgbwasboYBOa5w==",
|
||||
"contentSha256": "749055593bf9839837428d900d523b3363486556970cbf4e2daa25001ab174c8",
|
||||
"signedAt": "2026-11-14T11:36:03Z"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user