opengeos--geolibre
7df9ebf22c
Sync labels / sync (push) Failing after 1m9s
Publish Container Image / Build and publish container image (push) Has been cancelled
Deploy Website / Deploy to GitHub Pages (push) Has been cancelled
Deploy Website / Build website and demo (push) Has been cancelled
Deploy viewer / Deploy viewer proxy to Cloudflare Workers (push) Has been cancelled
Deploy tiles / Deploy planetary tile proxy to Cloudflare Workers (push) Has been cancelled
Deploy collab / Deploy collaboration relay to Cloudflare Workers (push) Has been cancelled
CI / Dependency audit (push) Has been cancelled
CI / E2E smoke (Playwright) (push) Has been cancelled
CI / Validate CITATION.cff (push) Has been cancelled
CI / Build and test (push) Has been cancelled
29 行
815 B
JavaScript
29 行
815 B
JavaScript
import { spawnSync } from "node:child_process";
|
|
import { dirname, resolve } from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
const repoRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
const userArgs = process.argv.slice(2);
|
|
const nativeDuckDb = userArgs.includes("--native-duckdb");
|
|
const tauriArgs = userArgs.filter((arg) => arg !== "--native-duckdb");
|
|
const buildArgs =
|
|
tauriArgs.length === 0 && process.platform === "linux"
|
|
? ["--bundles", "deb,rpm"]
|
|
: tauriArgs;
|
|
|
|
if (nativeDuckDb) {
|
|
buildArgs.push("--features", "native-duckdb");
|
|
}
|
|
|
|
const result = spawnSync(
|
|
"npm",
|
|
["run", "tauri", "-w", "geolibre-desktop", "--", "build", ...buildArgs],
|
|
{
|
|
cwd: repoRoot,
|
|
shell: process.platform === "win32",
|
|
stdio: "inherit",
|
|
},
|
|
);
|
|
|
|
process.exit(result.status ?? 1);
|