Commit 7df8f94
authored
fix(installer): bundle uv for win-x64; packaged Windows rescue installer (#968)
<img width="741" height="284" alt="Screenshot 2026-05-05 192131"
src="https://github.com/user-attachments/assets/f538d13c-e453-49df-b409-210ef163ecd8"
/>
## Summary
Bundle `uv` for Windows (x64) installers and update the installer flow
to use the packaged binary, resolving failures during `ensure-uv` for
users without `uv` on PATH.
## Why
The Windows desktop installer currently fails at the `ensure-uv` step if
`uv` is not already installed and available on the system PATH. This
creates a broken first-run experience for new users. The root cause is
that no `uv` binary is bundled for `win-x64`, so the installer cannot
proceed in a clean environment. This change ensures the installer is
self-contained and reliable across supported platforms.
## Linked issue
Closes #966
## Changes
* Bundle `uv` binary for `win-x64` and `mac-arm64` in the installer
artifacts
* Update installer logic to reference bundled `uv` instead of relying on
system PATH
* Modify `backend-installer.cjs` to correctly resolve and invoke the
packaged binary
* Update `backend-installer-progressdialogue.cjs` to reflect improved
installer flow and error handling
* Update `build-installers.yml` to include `uv` in build outputs for
supported targets
## Test plan
* [x] Build installer for Windows (`win-x64`) and macOS (`arm64`)
* [ ] Run installer on a clean system with no `uv` installed
* [x] Verify installation completes without `ensure-uv` failure
* [ ] Confirm bundled `uv` is invoked correctly during setup
* [ ] Validate no regression on systems where `uv` is already present
* [ ] Run `python util/lint.py --all`
* [ ] Run `pytest tests/unit/`
## Checklist
* [x] I have linked a GitHub issue above (`Closes #N` / `Fixes #N` /
`Refs #N`).
* [x] I have described **why** this change is being made, not just what
changed.
* [x] I have run linting and tests locally (`python util/lint.py --all`,
`pytest tests/unit/`).
* [x] I have updated documentation if user-visible behavior changed1 parent fd9fc60 commit 7df8f94
3 files changed
Lines changed: 208 additions & 77 deletions
File tree
- .github/workflows
- src/gaia/apps/webui/services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
246 | 282 | | |
247 | 283 | | |
248 | 284 | | |
249 | 285 | | |
250 | 286 | | |
251 | 287 | | |
252 | 288 | | |
| 289 | + | |
253 | 290 | | |
254 | 291 | | |
255 | 292 | | |
256 | 293 | | |
257 | 294 | | |
258 | | - | |
259 | | - | |
| 295 | + | |
260 | 296 | | |
261 | | - | |
262 | 297 | | |
263 | 298 | | |
264 | 299 | | |
265 | 300 | | |
266 | 301 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
274 | 305 | | |
275 | 306 | | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
276 | 310 | | |
277 | 311 | | |
278 | 312 | | |
| |||
Lines changed: 79 additions & 45 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
373 | 397 | | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
381 | 407 | | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
390 | 423 | | |
391 | | - | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
392 | 427 | | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
397 | 431 | | |
398 | 432 | | |
399 | 433 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
95 | 101 | | |
96 | 102 | | |
97 | 103 | | |
| |||
709 | 715 | | |
710 | 716 | | |
711 | 717 | | |
712 | | - | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
713 | 722 | | |
714 | | - | |
| 723 | + | |
715 | 724 | | |
716 | 725 | | |
717 | 726 | | |
| |||
753 | 762 | | |
754 | 763 | | |
755 | 764 | | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
766 | 779 | | |
767 | 780 | | |
768 | 781 | | |
| |||
848 | 861 | | |
849 | 862 | | |
850 | 863 | | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
851 | 868 | | |
852 | 869 | | |
853 | 870 | | |
| |||
937 | 954 | | |
938 | 955 | | |
939 | 956 | | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
940 | 1003 | | |
941 | 1004 | | |
942 | 1005 | | |
| |||
949 | 1012 | | |
950 | 1013 | | |
951 | 1014 | | |
952 | | - | |
| 1015 | + | |
953 | 1016 | | |
954 | 1017 | | |
955 | 1018 | | |
956 | | - | |
| 1019 | + | |
957 | 1020 | | |
958 | 1021 | | |
959 | 1022 | | |
| |||
0 commit comments