mirror of
https://github.com/zap-proto/zapd.git
synced 2026-10-30 15:06:58 +00:00
The release calls ci.yml before anything is built: every platform's tests, Windows included, must pass before the binaries, the wheels or the crate are made. The crate is published by this workflow with the KMS CARGO_REGISTRY_TOKEN, and npm with the KMS NPM_TOKEN, both granted to hanzo-ci, as PyPI already was; crates.io trusted publishing was never configured for the repository, and the repository's npm secret could not publish the package. The npm installer fetches the Windows binary. Claude-Session: https://claude.ai/code/session_01M8RoubcPN71KgJuZ8LdBUL
8 lines
368 B
JavaScript
Executable File
8 lines
368 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
// Thin launcher: exec the platform binary fetched by install.js.
|
|
const { spawnSync } = require('child_process');
|
|
const path = require('path');
|
|
const bin = path.join(__dirname, process.platform === 'win32' ? 'zapd.exe' : 'zapd');
|
|
const r = spawnSync(bin, process.argv.slice(2), { stdio: 'inherit' });
|
|
process.exit(r.status == null ? 1 : r.status);
|