mirror of
https://github.com/nexu-io/open-design.git
synced 2026-06-01 03:14:35 +07:00
* Add packaged desktop auto-update * Handle counted beta nightly update versions * Refresh desktop auto-update branch for main * Serialize desktop updater operations * Refresh auto-update branch for packaged paths
14 lines
488 B
JavaScript
Executable file
14 lines
488 B
JavaScript
Executable file
#!/usr/bin/env node
|
|
|
|
import { existsSync } from "node:fs";
|
|
import { dirname, resolve } from "node:path";
|
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
|
|
const entryDir = dirname(fileURLToPath(import.meta.url));
|
|
const distEntry = resolve(entryDir, "../dist/index.mjs");
|
|
|
|
if (!existsSync(distEntry)) {
|
|
throw new Error(`tools-serve dist entry not found at ${distEntry}. Run "pnpm --filter @open-design/tools-serve build" first.`);
|
|
}
|
|
|
|
await import(pathToFileURL(distEntry).href);
|