From 3c4afea5c78043293aecf3b43355d813c6627728 Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 11 Mar 2025 21:42:33 +0700 Subject: [PATCH] chore: do not symlink engine on linux --- extensions/engine-management-extension/src/node/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/engine-management-extension/src/node/index.ts b/extensions/engine-management-extension/src/node/index.ts index f9f8971b9..ae1934b25 100644 --- a/extensions/engine-management-extension/src/node/index.ts +++ b/extensions/engine-management-extension/src/node/index.ts @@ -24,7 +24,7 @@ const symlinkEngines = async () => { 'cortex.llamacpp' ) const variantFolders = await readdir(sourceEnginePath) - const isAppImage = !!process.env.APPIMAGE + const isStandalone = process.platform === 'linux' for (const variant of variantFolders) { const targetVariantPath = path.join( @@ -48,7 +48,7 @@ const symlinkEngines = async () => { continue } - if (isAppImage) { + if (isStandalone) { // Copy files for AppImage environments instead of symlinking await cp(targetVariantPath, symlinkVariantPath, { recursive: true }).catch( (error) => log(JSON.stringify(error))