Add packaged desktop auto-update

This commit is contained in:
PerishCode
2026-05-18 14:15:47 +08:00
parent 788ce450fc
commit a4ddef4178
37 changed files with 2267 additions and 15 deletions
+4 -1
View File
@@ -77,6 +77,8 @@ const residualAllowedExactPaths = new Set([
"tools/pack/esbuild.config.mjs",
"tools/pr/bin/tools-pr.mjs",
"tools/pr/esbuild.config.mjs",
"tools/serve/bin/tools-serve.mjs",
"tools/serve/esbuild.config.mjs",
"tools/pack/resources/mac/notarize.cjs",
// electron-builder hook path; CJS compatibility entry used by tools-pack desktop builds.
"tools/pack/resources/web-standalone-after-pack.cjs",
@@ -390,6 +392,7 @@ const toolsRootAllowlist = new Map<string, "directory" | "file">([
["dev", "directory"],
["pack", "directory"],
["pr", "directory"],
["serve", "directory"],
]);
async function checkToolsLayout(): Promise<boolean> {
@@ -403,7 +406,7 @@ async function checkToolsLayout(): Promise<boolean> {
const repositoryPath = `tools/${entry.name}${entry.isDirectory() ? "/" : ""}`;
if (expected == null) {
violations.push(`${repositoryPath} -> tools/ top-level entries are allowlisted; expected only AGENTS.md, dev/, pack/, and pr/`);
violations.push(`${repositoryPath} -> tools/ top-level entries are allowlisted; expected only AGENTS.md, dev/, pack/, pr/, and serve/`);
continue;
}
+1
View File
@@ -17,6 +17,7 @@ const buildTargets = [
"tools/dev",
"tools/pack",
"tools/pr",
"tools/serve",
];
const jsExtensions = new Set([".js", ".cjs", ".mjs"]);