singularity-forge/scripts/postinstall.js

11 lines
318 B
JavaScript
Raw Normal View History

2026-03-10 22:28:37 -06:00
#!/usr/bin/env node
import { execSync } from 'child_process'
import os from 'os'
const args = os.platform() === 'linux' ? '--with-deps' : ''
try {
execSync(`npx playwright install chromium ${args}`, { stdio: 'inherit' })
} catch {
// Non-fatal — browser tools will show a clear error if playwright is missing
}