Skip to content

Commit a01a15e

Browse files
authored
fix(skill): fix skill generation template (#2914)
This PR fixes the skill generation template to properly locate the toolbox.exe for windows
1 parent 52146c5 commit a01a15e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmd/internal/skills/generator.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ const configArgs = [{{.ConfigArgs}}];
130130
131131
function getToolboxPath() {
132132
if (process.env.GEMINI_CLI === '1') {
133-
const localPath = path.resolve(__dirname, '../../../toolbox');
133+
const ext = process.platform === 'win32' ? '.exe' : '';
134+
const localPath = path.resolve(__dirname, '../../../toolbox' + ext);
134135
if (fs.existsSync(localPath)) {
135136
return localPath;
136137
}

0 commit comments

Comments
 (0)