release: SnapCAD Studio 1.0.10 (desktop menuler, macOS kisayollari, YakNet SSO)
Build and Push Docker Images / build (push) Canceled after 0s
Desktop Release / Build linux desktop (push) Canceled after 0s
Desktop Release / Build windows desktop (push) Canceled after 0s
Desktop Release / Attach packages to release (push) Canceled after 0s
Desktop Release / Build macos desktop (push) Canceled after 0s
CI / Typecheck and unit tests (push) Canceled after 0s

This commit is contained in:
Enes Yakıştır
2026-11-12 10:12:35 +03:00
parent d5cc023856
commit ee28672e23
81 changed files with 10729 additions and 821 deletions
+15 -8
View File
@@ -7,7 +7,12 @@ import electronPath from "electron";
const desktopDir = path.dirname(fileURLToPath(import.meta.url));
const repoRoot = path.resolve(desktopDir, "..", "..");
const nextBin = path.join(repoRoot, "node_modules", "next", "dist", "bin", "next");
const copyOcctScript = path.join(repoRoot, "scripts", "copy-occt-wasm.mjs");
const wasmCopyScripts = [
path.join(repoRoot, "scripts", "copy-occt-wasm.mjs"),
path.join(repoRoot, "scripts", "copy-dwg-wasm.mjs"),
path.join(repoRoot, "scripts", "copy-ifc-wasm.mjs"),
path.join(repoRoot, "scripts", "copy-planegcs-wasm.mjs"),
];
const electronMain = path.join(desktopDir, "main.cjs");
function findFreePort() {
@@ -50,14 +55,16 @@ async function waitForUrl(url, child, timeoutMs = 45_000) {
throw new Error(`Timed out waiting for SketchForge dev server.${detail}`);
}
const copyResult = spawnSync(process.execPath, [copyOcctScript], {
cwd: repoRoot,
stdio: "inherit",
env: process.env,
});
for (const scriptPath of wasmCopyScripts) {
const copyResult = spawnSync(process.execPath, [scriptPath], {
cwd: repoRoot,
stdio: "inherit",
env: process.env,
});
if (copyResult.status !== 0) {
process.exit(copyResult.status ?? 1);
if (copyResult.status !== 0) {
process.exit(copyResult.status ?? 1);
}
}
const port = await findFreePort();