chore: release v1.24.0

This commit is contained in:
coso
2026-04-30 04:46:39 +08:00
parent ee84d69c29
commit ad64ac7cce
468 changed files with 18163 additions and 7233 deletions
@@ -288,6 +288,7 @@ function validateEntryBindings(errors, contract) {
"entry_key",
"display_name",
"launch_metadata_path",
"entry_source",
]) {
pushIf(
errors,
@@ -300,6 +301,12 @@ function validateEntryBindings(errors, contract) {
!ENTRY_KINDS.has(entry.entry_kind),
`${prefix}.entry_kind is unknown: ${String(entry.entry_kind)}`,
);
pushIf(
errors,
isNonEmptyString(entry.launch_metadata_path) &&
!entry.launch_metadata_path.startsWith("harness."),
`${prefix}.launch_metadata_path must point to harness metadata`,
);
validateStringArray(
errors,
contractKey,
+11 -11
View File
@@ -303,7 +303,7 @@ describe("GitHub release asset staging", () => {
"arm-sig",
);
writeFile(
path.join(assetsDir, "aarch64-apple-darwin", "Lime_1.23.0_aarch64.dmg"),
path.join(assetsDir, "aarch64-apple-darwin", "Lime_1.24.0_aarch64.dmg"),
);
writeFile(path.join(assetsDir, "x86_64-apple-darwin", "Lime.app.tar.gz"));
writeFile(
@@ -311,7 +311,7 @@ describe("GitHub release asset staging", () => {
"x64-sig",
);
writeFile(
path.join(assetsDir, "x86_64-apple-darwin", "Lime_1.23.0_x64.dmg"),
path.join(assetsDir, "x86_64-apple-darwin", "Lime_1.24.0_x64.dmg"),
);
writeFile(latestPath, "{}");
@@ -319,29 +319,29 @@ describe("GitHub release asset staging", () => {
assetsDir,
extraAssets: [latestPath],
outDir,
version: "v1.23.0",
version: "v1.24.0",
});
expect(copied.map((item) => item.name).sort()).toEqual(
[
"Lime_1.23.0_aarch64.app.tar.gz",
"Lime_1.23.0_aarch64.app.tar.gz.sig",
"Lime_1.23.0_aarch64.dmg",
"Lime_1.23.0_x64.app.tar.gz",
"Lime_1.23.0_x64.app.tar.gz.sig",
"Lime_1.23.0_x64.dmg",
"Lime_1.24.0_aarch64.app.tar.gz",
"Lime_1.24.0_aarch64.app.tar.gz.sig",
"Lime_1.24.0_aarch64.dmg",
"Lime_1.24.0_x64.app.tar.gz",
"Lime_1.24.0_x64.app.tar.gz.sig",
"Lime_1.24.0_x64.dmg",
"latest.json",
].sort(),
);
expect(
fs.readFileSync(
path.join(outDir, "Lime_1.23.0_aarch64.app.tar.gz.sig"),
path.join(outDir, "Lime_1.24.0_aarch64.app.tar.gz.sig"),
"utf8",
),
).toBe("arm-sig");
expect(
fs.readFileSync(
path.join(outDir, "Lime_1.23.0_x64.app.tar.gz.sig"),
path.join(outDir, "Lime_1.24.0_x64.app.tar.gz.sig"),
"utf8",
),
).toBe("x64-sig");