mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
fix(server): preload macros for Windows dev CLI
This commit is contained in:
parent
f911d9e79d
commit
55c11b481b
@ -229,7 +229,9 @@ describe('ConversationService', () => {
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
expect(args[0]).toBe(process.execPath)
|
||||
expect(args[1]).toContain(path.join('src', 'entrypoints', 'cli.tsx'))
|
||||
expect(args[1]).toBe('--preload')
|
||||
expect(args[2]).toContain('preload.ts')
|
||||
expect(args[3]).toContain(path.join('src', 'entrypoints', 'cli.tsx'))
|
||||
} else {
|
||||
expect(args[0]).toContain(path.join('bin', 'claude-haha'))
|
||||
}
|
||||
|
||||
@ -703,6 +703,8 @@ export class ConversationService {
|
||||
if (process.platform === 'win32') {
|
||||
return [
|
||||
process.execPath,
|
||||
'--preload',
|
||||
path.resolve(import.meta.dir, '../../../preload.ts'),
|
||||
path.resolve(import.meta.dir, '../../entrypoints/cli.tsx'),
|
||||
...baseArgs,
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user