mirror of
https://github.com/stablyai/orca
synced 2026-04-21 14:17:16 +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:
parent
d4a2d25942
commit
fdbd08e085
1 changed files with 5 additions and 1 deletions
|
|
@ -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: [
|
||||
|
|
|
|||
Loading…
Reference in a new issue