Commit 4a3958a
fix: settings window blank in production builds (#120)
The settings window picked its URL by checking whether build.dev_url was
present in the config, assuming it is None in release. It is not: the
bundled config carries devUrl from tauri.conf.json verbatim, so production
builds pointed the settings webview at http://localhost:1420/settings — a
Vite dev server that does not exist on user machines. The page never
loaded, the frontend reveal never ran, and reopening from the menu showed
a permanently blank window.
Gate on tauri::is_dev() instead, so release builds always serve the
bundled assets via tauri://localhost/settings (the asset protocol falls
back to index.html for SPA routes). Verified in a local release build:
the settings webview now loads, renders all panes, and shows itself.
Also catches Cargo.lock up to the v0.5.0 version bump (#116), which was
committed without regenerating the lockfile.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent c212a96 commit 4a3958a
1 file changed
Lines changed: 14 additions & 7 deletions
File tree
- src-tauri/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
151 | 158 | | |
152 | 159 | | |
153 | 160 | | |
| |||
0 commit comments