@titanpl/core 2.0.8 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/configure.js +1 -18
- package/native/target/release/libtitan_core.so +0 -0
- package/package.json +1 -1
- package/titan.json +1 -1
package/configure.js
CHANGED
|
@@ -26,24 +26,7 @@ const expectedBinary = resolve(nativeDir, "target/release", libFile);
|
|
|
26
26
|
|
|
27
27
|
// 2. Build if binary missing
|
|
28
28
|
if (!existsSync(expectedBinary)) {
|
|
29
|
-
console.log(`Native binary missing
|
|
30
|
-
|
|
31
|
-
const build = spawnSync(
|
|
32
|
-
"cargo",
|
|
33
|
-
["build", "--release"],
|
|
34
|
-
{
|
|
35
|
-
cwd: nativeDir,
|
|
36
|
-
stdio: "ignore", // <-- completely hides Rust logs
|
|
37
|
-
shell: true
|
|
38
|
-
}
|
|
39
|
-
);
|
|
40
|
-
|
|
41
|
-
if (build.status !== 0) {
|
|
42
|
-
console.error("Cargo build failed. (No logs shown due to silent mode)");
|
|
43
|
-
process.exit(1);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
console.log(`Build completed for ${platform}.`);
|
|
29
|
+
console.log(`Native binary missing.`);
|
|
47
30
|
}
|
|
48
31
|
|
|
49
32
|
// 3. Update titan.json
|
|
Binary file
|
package/package.json
CHANGED