mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 08:02:28 +00:00
fix: unpack out/shared/ from asar so CLI cross-directory imports resolve (#344)
The CLI entry-point (out/cli/) requires modules from out/shared/ (e.g. runtime-bootstrap). Without unpacking both directories, Node's require() fails when the CLI runs outside the asar archive.
This commit is contained in:
@@ -15,7 +15,11 @@ module.exports = {
|
||||
'!{.env,.env.*,.npmrc,pnpm-lock.yaml}',
|
||||
'!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
|
||||
],
|
||||
asarUnpack: ['out/cli/**', 'resources/**'],
|
||||
// Why: the CLI entry-point lives in out/cli/ but imports shared modules
|
||||
// from out/shared/ (e.g. runtime-bootstrap). Both directories must be
|
||||
// unpacked so that Node's require() can resolve the cross-directory imports
|
||||
// when the CLI runs outside the asar archive.
|
||||
asarUnpack: ['out/cli/**', 'out/shared/**', 'resources/**'],
|
||||
win: {
|
||||
executableName: 'Orca',
|
||||
extraResources: [
|
||||
|
||||
Reference in New Issue
Block a user