Skip to content

Commit

Permalink
- fix: windows build scripts (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
agallardol authored Nov 14, 2024
1 parent 148b1f0 commit 334a007
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion scripts/shinkai-viem-bundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ console.log('🚀 Starting Shinkai Viem bundler...');
// Parse command line arguments
console.log('📝 Parsing command line arguments...');
const args = minimist(process.argv.slice(2));
const entryFile: string = join(process.cwd(), args.entry);
let entryFile: string = join(process.cwd(), args.entry);
if (process.platform === 'win32') {
entryFile = `file://${join(process.cwd(), args.entry)}`;
}
const outputFile: string = join(process.cwd(), args.outfile);

// Log file paths for debugging
Expand Down
2 changes: 1 addition & 1 deletion scripts/tool-bundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ fs.promises
// Import tool definition from bundled code
console.log('📥 Importing tool definition...');
const { definition }: { definition: ToolDefinition<any> } = await import(
outputFile
process.platform === 'win32' ? `file://${outputFile}` : outputFile
);

console.log('✨ Tool definition loaded:', definition.name);
Expand Down

0 comments on commit 334a007

Please sign in to comment.