release: prepare v0.9.7

This commit is contained in:
BigBodyCobain
2026-05-01 22:55:04 -06:00
parent ea457f27da
commit 28b3bd5ebf
670 changed files with 187060 additions and 14006 deletions
@@ -0,0 +1,29 @@
const { execFileSync } = require('node:child_process');
const path = require('node:path');
const fs = require('node:fs');
const frontendDir = path.resolve(__dirname, '..');
const repoRoot = path.resolve(frontendDir, '..');
const privacyCoreManifest = path.join(repoRoot, 'privacy-core', 'Cargo.toml');
const outDir = path.join(frontendDir, 'src', 'mesh', 'privacyCoreWasm');
const wasmPath = path.join(
repoRoot,
'privacy-core',
'target',
'wasm32-unknown-unknown',
'release',
'privacy_core.wasm',
);
function run(bin, args) {
execFileSync(bin, args, {
cwd: repoRoot,
stdio: 'inherit',
});
}
fs.mkdirSync(outDir, { recursive: true });
run('rustup', ['target', 'add', 'wasm32-unknown-unknown']);
run('cargo', ['build', '--target', 'wasm32-unknown-unknown', '--release', '--manifest-path', privacyCoreManifest]);
run('wasm-bindgen', ['--target', 'web', '--out-dir', outDir, wasmPath]);