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
+16 -3
View File
@@ -6,7 +6,12 @@ import { fileURLToPath } from "node:url";
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"),
];
function runNode(args, env = process.env) {
const result = spawnSync(process.execPath, args, {
@@ -25,7 +30,9 @@ function runNode(args, env = process.env) {
}
}
runNode([copyOcctScript]);
for (const scriptPath of wasmCopyScripts) {
runNode([scriptPath]);
}
runNode([nextBin, "build", "apps/web"], {
...process.env,
SKETCHFORGE_DOCKER_BUILD: "true",
@@ -34,6 +41,7 @@ runNode([nextBin, "build", "apps/web"], {
const requiredPaths = [
path.join(repoRoot, "apps", "web", ".next", "standalone", "apps", "web", "server.js"),
path.join(repoRoot, "apps", "web", ".next", "standalone", "node_modules"),
path.join(repoRoot, "apps", "web", ".next", "static"),
path.join(repoRoot, "apps", "web", "public"),
];
@@ -45,4 +53,9 @@ for (const requiredPath of requiredPaths) {
}
}
console.log("[desktop:web:build] Standalone SketchForge web bundle is ready.");
const standaloneModulesSrc = path.join(repoRoot, "apps", "web", ".next", "standalone", "node_modules");
const stagedRuntimeModules = path.join(repoRoot, "apps", "web", ".next", "desktop-runtime_modules");
fs.rmSync(stagedRuntimeModules, { recursive: true, force: true });
fs.cpSync(standaloneModulesSrc, stagedRuntimeModules, { recursive: true, dereference: true });
console.log("[desktop:web:build] Standalone SnapCAD web bundle is ready.");