Files
openhuman/packages/npm/bin/openhuman.js
T
YellowSnnowmannandGitHub 6406ec2bc3 Feat:package manager channels (brew, apt, npm ) (#166)
* 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
2026-04-01 19:30:55 +05:30

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