Files
FreeCADWasmDev/tools/sync-assets.mjs
wangdequan 9a7c4f0335 Save FreeCAD Web workspace sources and user validation evidence
IFC native binding remains incomplete; preserve accurate test results.
2026-09-15 22:01:58 +08:00

10 lines
434 B
JavaScript

#!/usr/bin/env node
import { spawnSync } from "node:child_process";
import { fileURLToPath } from "node:url";
const target = fileURLToPath(new URL("../web/tools/sync-assets.mjs", import.meta.url));
const result = spawnSync(process.execPath, [target, ...process.argv.slice(2)], { stdio: "inherit" });
if (result.error) throw result.error;
if (result.signal) process.kill(process.pid, result.signal);
process.exit(result.status ?? 1);