Files
ycode/scripts/runtime-before-pack.cjs
T

8 lines
350 B
JavaScript

module.exports = async function beforePack(context) {
if (context.electronPlatformName !== 'win32' || context.arch !== 1) {
throw new Error('YCode bundled runtimes support Windows x64 only; do not ship x64 runtimes for another target.')
}
const { verifyRuntimeBundle } = await import('./runtime-bundle.mjs')
await verifyRuntimeBundle()
}