Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions ui/desktop/src/utils/binaryPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,16 @@ export const getBinaryPath = (app: Electron.App, binaryName: string): string =>
if (binaryName === 'goosed') {
return path.join(process.resourcesPath, 'bin', 'goosed.exe');
}
// For other binaries (uvx, npx), rely on PATH we just patched
return binaryName;

// Map binary names to their Windows equivalents
const windowsBinaryMap: Record<string, string> = {
npx: 'npx.cmd',
uvx: 'uvx.exe',
};

// For other binaries, use Windows-specific extensions if available
const windowsBinary = windowsBinaryMap[binaryName] || binaryName;
return windowsBinary;
}

// For non-Windows platforms, use the original logic
Expand Down
Loading