singularity-forge/scripts/postinstall.js
Lex Christopherson 3bd2f8cb63 Initial commit
2026-03-10 22:28:37 -06:00

10 lines
318 B
JavaScript

#!/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
}