Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion sdk_v2/js/script/install.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const CORE_FEED = useNightly ? ORT_NIGHTLY_FEED : NUGET_FEED;
const ARTIFACTS = [
{
name: useWinML ? 'Microsoft.AI.Foundry.Local.Core.WinML' : 'Microsoft.AI.Foundry.Local.Core',
version: useNightly ? undefined : useWinML ? '0.9.0.7-dev.20260209T090407.b5352143' : '0.9.0.8-dev.20260209T090216.b5352143', // Set later using resolveLatestVersion if undefined
version: useNightly ? undefined : useWinML ? '0.9.0.194-dev-20260220T213816-a79d8a61' : '0.9.0.8-dev.20260209T090216.b5352143', // Set later using resolveLatestVersion if undefined
feed: ORT_NIGHTLY_FEED
},
{
Expand Down
9 changes: 9 additions & 0 deletions sdk_v2/js/src/detail/coreInterop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ export class CoreInterop {
const corePath = path.join(packageDir, `Microsoft.AI.Foundry.Local.Core${ext}`);
if (fs.existsSync(corePath)) {
config.params['FoundryLocalCorePath'] = corePath;

// Auto-detect if WinML Bootstrap is needed by checking for Bootstrap DLL in FoundryLocalCorePath
const bootstrapDllPath = path.join(packageDir, 'Microsoft.WindowsAppRuntime.Bootstrap.dll');
if (fs.existsSync(bootstrapDllPath)) {
// WinML Bootstrap DLL found, enable bootstrapping
config.params['Bootstrap'] = 'true';
}

return corePath;
}

Expand All @@ -72,6 +80,7 @@ export class CoreInterop {
if (process.platform === 'win32') {
koffi.load(path.join(coreDir, `onnxruntime${ext}`));
koffi.load(path.join(coreDir, `onnxruntime-genai${ext}`));
process.env.PATH = `${coreDir};${process.env.PATH}`;
}
this.lib = koffi.load(corePath);

Expand Down