Updates
This commit is contained in:
@@ -90,10 +90,29 @@ function predownloadElectron(hosts) {
|
||||
})
|
||||
}
|
||||
|
||||
function ensureBareRuntimes(hosts) {
|
||||
if (process.env.PEARDATA_SKIP_QVAC === '1' || process.env.PEARDATA_SKIP_QVAC === 'true') {
|
||||
console.log('[make] skip bare-runtime ensure (PEARDATA_SKIP_QVAC=1)')
|
||||
return
|
||||
}
|
||||
// Only QVAC-native hosts need the platform bare binary in the client package
|
||||
const need = hosts.filter((h) => hostSupportsQvacNative(h))
|
||||
if (!need.length) return
|
||||
console.log(`[make] ensuring bare-runtime platform packages: ${need.join(', ')}`)
|
||||
run(process.execPath, [
|
||||
path.join(root, 'scripts', 'ensure-qvac-bare-runtimes.cjs'),
|
||||
'--hosts',
|
||||
need.join(','),
|
||||
])
|
||||
}
|
||||
|
||||
function makeClient(hosts = CLIENT_HOSTS) {
|
||||
console.log(`[make] client hosts: ${hosts.join(', ')}`)
|
||||
npmRun('build:client-bundle')
|
||||
predownloadElectron(hosts)
|
||||
// Cross-host CI: npm ci never installs darwin/win32 optional bare-runtime-* packages.
|
||||
// Install them before forge packages so the app ships the Bare worker binary.
|
||||
ensureBareRuntimes(hosts)
|
||||
|
||||
for (const host of hosts) {
|
||||
const script = clientNpmScript(host)
|
||||
|
||||
Reference in New Issue
Block a user