Skip to content

Commit

Permalink
windows fix
Browse files Browse the repository at this point in the history
  • Loading branch information
decahedron1 committed May 25, 2024
1 parent 8095faa commit 5dbcc42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,16 @@ await new Command()
if (platform !== 'win32') {
await copyLib(dynamicLibName('onnxruntime'));
} else {
// on windows, libonnxruntime is in /bin/, for whatever reason
await copyLib(staticLibName('onnxruntime'));
// on windows, onnxruntime.dll is in /bin/, for whatever reason
await Deno.copyFile(join(outDir, 'bin', 'onnxruntime.dll'), join(artifactLibDir, 'onnxruntime.dll'));
}

if (options.cuda || options.trt || options.rocm) {
if (platform !== 'win32') {
await copyLib(dynamicLibName('onnxruntime_providers_shared'));
} else {
await copyLib(staticLibName('onnxruntime_providers_shared'));
// ditto 🙃
await Deno.copyFile(
join(outDir, 'bin', 'onnxruntime_providers_shared.dll'),
Expand Down

0 comments on commit 5dbcc42

Please sign in to comment.