chore: do not symlink engine on linux

This commit is contained in:
Louis 2025-03-11 21:42:33 +07:00
parent cce52f012c
commit 3c4afea5c7
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2

View File

@ -24,7 +24,7 @@ const symlinkEngines = async () => {
'cortex.llamacpp' 'cortex.llamacpp'
) )
const variantFolders = await readdir(sourceEnginePath) const variantFolders = await readdir(sourceEnginePath)
const isAppImage = !!process.env.APPIMAGE const isStandalone = process.platform === 'linux'
for (const variant of variantFolders) { for (const variant of variantFolders) {
const targetVariantPath = path.join( const targetVariantPath = path.join(
@ -48,7 +48,7 @@ const symlinkEngines = async () => {
continue continue
} }
if (isAppImage) { if (isStandalone) {
// Copy files for AppImage environments instead of symlinking // Copy files for AppImage environments instead of symlinking
await cp(targetVariantPath, symlinkVariantPath, { recursive: true }).catch( await cp(targetVariantPath, symlinkVariantPath, { recursive: true }).catch(
(error) => log(JSON.stringify(error)) (error) => log(JSON.stringify(error))