Merge pull request #10 from Boof2015/VSTs

Add cross platform VSTs
This commit is contained in:
Boof2015
2026-06-03 10:21:21 -04:00
committed by GitHub
parent 180d0dbef5
commit 63ef5ffa0f
63 changed files with 5617 additions and 66 deletions
+18
View File
@@ -0,0 +1,18 @@
const { spawnSync } = require('node:child_process')
const skipNativePostinstall = /^(1|true|yes)$/i.test(process.env.PRISM_SKIP_NATIVE_POSTINSTALL || '')
if (skipNativePostinstall) {
console.log('Skipping native postinstall because PRISM_SKIP_NATIVE_POSTINSTALL is set.')
process.exit(0)
}
const npmCommand = process.platform === 'win32' ? 'npm.cmd' : 'npm'
const result = spawnSync(npmCommand, ['run', 'rebuild:native'], { stdio: 'inherit' })
if (result.status === 0) {
process.exit(0)
}
console.warn('Native build failed, will use JS fallback')
process.exit(0)