* fix(cli): preserve multiline Windows arguments * test(cli): run Windows launcher regression in CI * fix(cli): support Windows Framework C# compiler
15 lines
643 B
TypeScript
15 lines
643 B
TypeScript
import { readFileSync } from 'node:fs'
|
|
import { join } from 'node:path'
|
|
import { describe, expect, it } from 'vitest'
|
|
|
|
describe('packaged Windows CLI launcher asset', () => {
|
|
it('keeps the batch compatibility shim behind the newline-safe native launcher', () => {
|
|
const launcherPath = join(process.cwd(), 'resources', 'win32', 'bin', 'orca.cmd')
|
|
const launcher = readFileSync(launcherPath, 'utf8')
|
|
|
|
expect(launcher).toContain('set "LAUNCHER=%SCRIPT_DIR%orca.exe"')
|
|
expect(launcher).toContain('orca.cmd cannot safely forward orchestration message bodies')
|
|
expect(launcher).not.toContain('"%ELECTRON%" "%CLI%" %*')
|
|
})
|
|
})
|