Files
zeekay 937adac37a Publish only on green: the release runs CI first, and reads its tokens from KMS, as 1.1.8
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
2026-10-15 04:50:39 -07:00

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);