mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-28 13:32:23 +00:00
* feat(release): upload versioned CLI tarballs in release workflow (#128) Package and upload non-Windows CLI tarballs with SHA-256 checksum companions during release builds so package managers can consume stable release artifacts. Made-with: Cursor * feat(packaging): add brew apt npm release channels automation (#128) Add post-release workflow and channel assets to publish Homebrew formula updates, signed apt repository metadata, and npm package releases with smoke validation. Made-with: Cursor * docs: add installation guide for OpenHuman across various package managers
28 lines
686 B
JavaScript
28 lines
686 B
JavaScript
#!/usr/bin/env node
|
|
'use strict';
|
|
|
|
const { spawnSync } = require('child_process');
|
|
const path = require('path');
|
|
|
|
const isWin = process.platform === 'win32';
|
|
const binName = isWin ? 'openhuman-bin.exe' : 'openhuman-bin';
|
|
const binPath = path.join(__dirname, binName);
|
|
|
|
const result = spawnSync(binPath, process.argv.slice(2), {
|
|
stdio: 'inherit',
|
|
windowsHide: false,
|
|
});
|
|
|
|
if (result.error) {
|
|
if (result.error.code === 'ENOENT') {
|
|
process.stderr.write(
|
|
'openhuman binary not found. Try reinstalling: npm install -g openhuman\n'
|
|
);
|
|
} else {
|
|
process.stderr.write(`openhuman: ${result.error.message}\n`);
|
|
}
|
|
process.exit(1);
|
|
}
|
|
|
|
process.exit(result.status ?? 0);
|