mirror of
https://github.com/nexu-io/open-design.git
synced 2026-10-27 09:51:12 +01:00
Add packaged desktop auto-update
This commit is contained in:
+4
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ const buildTargets = [
|
||||
"tools/dev",
|
||||
"tools/pack",
|
||||
"tools/pr",
|
||||
"tools/serve",
|
||||
];
|
||||
|
||||
const jsExtensions = new Set([".js", ".cjs", ".mjs"]);
|
||||
|
||||
Reference in New Issue
Block a user