add support for windows ggml-clip.exe

This commit is contained in:
Abhinav 2023-11-16 11:29:49 +05:30
parent c3887847bc
commit 54d6a51a81

View file

@ -129,7 +129,12 @@ export async function getClipTextModelPath() {
function getGGMLClipPath() {
return isDev
? path.join('./build', `ggmlclip-${getPlatform()}`)
? path.join(
'./build',
`ggmlclip-${getPlatform()}${
getPlatform() === 'windows' ? '.exe' : ''
}`
)
: path.join(process.resourcesPath, `ggmlclip-${getPlatform()}`);
}