Commit 3035ecc
committed
fix(prefix): cache Proton tarballs in $CACHE_DIR/proton; fix init prefix-exists check
install_proton: tarballs now saved to $CACHE_DIR/proton/ (~/.cache/wine-installers/proton/) instead of /tmp. Before downloading, the cached file is checked by exact version name — if present the download is skipped entirely. No deletion after extraction so subsequent wig full reuses the archive. gh CLI fallback also saves to the cache directory.
init(): changed prefix-exists check from -d $WINEPREFIX (which the full_setup pre-build step creates with mkdir -p) to -d $WINEPREFIX/pfx/drive_c, which only exists once Proton has actually initialised the prefix. Eliminates the confusing 'Prefix already exists — re-running non-destructively' message during wig full.1 parent 4e8c710 commit 3035ecc
1 file changed
Lines changed: 17 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| |||
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
718 | | - | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
719 | 723 | | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
720 | 729 | | |
721 | 730 | | |
722 | 731 | | |
723 | | - | |
724 | | - | |
725 | | - | |
| 732 | + | |
| 733 | + | |
726 | 734 | | |
727 | | - | |
| 735 | + | |
728 | 736 | | |
729 | 737 | | |
730 | 738 | | |
| |||
735 | 743 | | |
736 | 744 | | |
737 | 745 | | |
738 | | - | |
| 746 | + | |
739 | 747 | | |
| 748 | + | |
740 | 749 | | |
741 | 750 | | |
742 | 751 | | |
| |||
747 | 756 | | |
748 | 757 | | |
749 | 758 | | |
750 | | - | |
751 | | - | |
| 759 | + | |
752 | 760 | | |
753 | 761 | | |
754 | 762 | | |
| |||
0 commit comments