Commit 6ccafa1
fix(config): use app.isPackaged instead of resourcesPath to detect packaged build
process.resourcesPath is truthy in Electron dev mode too, making the dev
fallback in getTfStatePath() unreachable. Switch to app.isPackaged (via a
new readIsPackaged() helper, following the same lazy-require pattern as
readUserDataPath()) so the packaged-path branch only fires in a real
packaged build.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 898eca1 commit 6ccafa1
2 files changed
Lines changed: 28 additions & 8 deletions
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
259 | 261 | | |
260 | 262 | | |
261 | 263 | | |
262 | 264 | | |
263 | 265 | | |
264 | | - | |
265 | | - | |
| 266 | + | |
| 267 | + | |
266 | 268 | | |
267 | 269 | | |
268 | 270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
177 | 195 | | |
178 | 196 | | |
179 | 197 | | |
| |||
198 | 216 | | |
199 | 217 | | |
200 | 218 | | |
201 | | - | |
| 219 | + | |
202 | 220 | | |
203 | 221 | | |
204 | 222 | | |
205 | 223 | | |
206 | 224 | | |
207 | 225 | | |
208 | | - | |
209 | | - | |
210 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
211 | 229 | | |
212 | 230 | | |
213 | 231 | | |
| |||
0 commit comments