diff --git a/desktop/src-tauri/Cargo.toml b/desktop/src-tauri/Cargo.toml index e2c8067b..ff34b9b1 100644 --- a/desktop/src-tauri/Cargo.toml +++ b/desktop/src-tauri/Cargo.toml @@ -68,7 +68,7 @@ winreg = "0.52.0" # macOS [target.'cfg(target_os = "macos")'.dependencies] # TODO: use metal? https://github.com/ggerganov/whisper.cpp/discussions/1722 -vibe_core = { path = "../../core", features = ["coreml"] } +vibe_core = { path = "../../core", features = ["coreml", "metal"] } cocoa = "0.25.0" screencapturekit = { version = "0.2.8", features = ["ci"] } screencapturekit-sys = "0.2.8" diff --git a/scripts/pre_build.js b/scripts/pre_build.js index 9c6e33f3..a92c1da2 100755 --- a/scripts/pre_build.js +++ b/scripts/pre_build.js @@ -266,9 +266,8 @@ if (process.env.GITHUB_ENV) { await fs.appendFile(process.env.GITHUB_ENV, ffmpeg) } if (platform == 'macos') { - // TODO: handle metal - // const embed_metal = 'WHISPER_METAL_EMBED_LIBRARY=ON' - // await fs.appendFile(process.env.GITHUB_ENV, embed_metal) + const embed_metal = 'WHISPER_METAL_EMBED_LIBRARY=ON' + await fs.appendFile(process.env.GITHUB_ENV, embed_metal) } if (platform == 'windows') { const openblas = `OPENBLAS_PATH=${exports.openBlas}\n`