fix: preserve drive letter in Windows plugin paths (#410)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Gregory Schier
2026-02-26 16:23:24 -08:00
committed by GitHub
parent 435ee54140
commit 37d0cabb22
5 changed files with 11 additions and 13 deletions

View File

@@ -45,6 +45,9 @@ const args = [
...additionalArgs
];
const result = spawnSync('tauri', args, { stdio: 'inherit', shell: false, env: process.env });
// Invoke the tauri CLI JS entry point directly via node to avoid shell escaping issues on Windows
const tauriJs = path.join(rootDir, 'node_modules', '@tauri-apps', 'cli', 'tauri.js');
const result = spawnSync(process.execPath, [tauriJs, ...args], { stdio: 'inherit', env: process.env });
process.exit(result.status || 0);