Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "openless-all/app/src-tauri/vendor/qwen-asr"]
path = openless-all/app/src-tauri/vendor/qwen-asr
url = https://github.com/Open-Less/qwen-asr.git
[submodule "openless-all/app/src-tauri/vendor/qwen3-asr-rs"]
path = openless-all/app/src-tauri/vendor/qwen3-asr-rs
url = [email protected]:jimersylee/qwen3_asr_rs.git
1 change: 1 addition & 0 deletions openless-all/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"prebuild": "node scripts/android-ipc-import-boundary.test.mjs",
"build": "tsc && vite build",
"preview": "vite preview",
"pretauri": "node scripts/check-macos-metal-toolchain.mjs",
"tauri": "tauri",
"tauri:android:init": "tauri android init",
"tauri:android:dev": "tauri android dev",
Expand Down
25 changes: 25 additions & 0 deletions openless-all/app/scripts/check-macos-metal-toolchain.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { spawnSync } from "node:child_process"

if (process.platform !== "darwin") process.exit(0)

const result = spawnSync("xcrun", ["--find", "metal"], {
encoding: "utf8",
})

if (result.status === 0 && result.stdout?.trim()) process.exit(0)

console.error(`
OpenLess 的 Qwen3-ASR MLX 后端需要 Apple MetalToolchain。
当前 Xcode 未找到 Metal 编译器,请先执行:

xcodebuild -downloadComponent MetalToolchain

完成后验证:

xcrun --find metal

然后重新运行:

pnpm tauri dev
`)
process.exit(1)
Loading
Loading