mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-08-17 18:25:42 +02:00
15 lines
564 B
JavaScript
15 lines
564 B
JavaScript
// Cross-platform wrapper around sign-vmp.sh.
|
|
// VMP signing (CastLabs Widevine) only runs on macOS. On Windows/Linux this
|
|
// is a no-op so `npm install` doesn't blow up trying to invoke bash.
|
|
const { spawnSync } = require('child_process');
|
|
const path = require('path');
|
|
|
|
if (process.platform !== 'darwin') {
|
|
console.log(`[vmp] Skipping VMP signing on ${process.platform} (macOS-only)`);
|
|
process.exit(0);
|
|
}
|
|
|
|
const script = path.join(__dirname, 'sign-vmp.sh');
|
|
const result = spawnSync('bash', [script], { stdio: 'inherit' });
|
|
process.exit(result.status ?? 0);
|