27 lines
515 B
JavaScript
27 lines
515 B
JavaScript
/**
|
|
* Standalone pack stub: pear-runtime (and its native graph) is not embedded by
|
|
* default — host updates use Gitea rolling tarballs. Rebuild with --with-ota to
|
|
* pack the real module.
|
|
*/
|
|
class PearRuntimeStub {
|
|
static isStub = true
|
|
|
|
constructor() {
|
|
this.updater = null
|
|
}
|
|
|
|
on() {
|
|
return this
|
|
}
|
|
|
|
async ready() {
|
|
throw new Error(
|
|
'pear-runtime not packed into this standalone binary (host OTA via Gitea rolling)'
|
|
)
|
|
}
|
|
|
|
async close() {}
|
|
}
|
|
|
|
module.exports = PearRuntimeStub
|