chore: do not symlink engine on linux
This commit is contained in:
parent
cce52f012c
commit
3c4afea5c7
@ -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))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user