Commit 9e0f4c8
fix: resolve transcription script path inside packaged app.asar
In packaged builds, dirname(import.meta.url) + 4 levels up lands outside the asar, so LOCAL_TRANSCRIBE_SCRIPT didn't exist and isLocalAvailable() returned false. Use app.getAppPath() (with package.json walk fallback) so the path resolves both in dev and in the built app.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent edc7735 commit 9e0f4c8
1 file changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
16 | 29 | | |
17 | 30 | | |
18 | 31 | | |
| |||
0 commit comments