Skip to content
Open
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
8 changes: 8 additions & 0 deletions sdk/js/script/install-utils.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,14 @@ async function runInstall(artifacts, options) {
}

console.log(`[foundry-local] Installing native libraries for ${RID}...`);
// Clear existing binaries so stale DLLs from a prior variant (e.g. standard)
// don't persist when a different variant (e.g. WinML) is installed.
if (fs.existsSync(binDir)) {
for (const file of fs.readdirSync(binDir)) {
const filePath = path.join(binDir, file);
fs.unlinkSync(filePath);
}
}
fs.mkdirSync(binDir, { recursive: true });

const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'foundry-install-'));
Expand Down
Loading