fix(postinstall): correct download URLs for post-boot files
Fixed 404 errors during post-install by correcting GitHub download paths: - Changed post-boot service path from assets/systemd/ to install/post-boot/ - Changed post-boot scripts path from assets/post-boot/ to install/post-boot/ Also updated AUR helper descriptions to mention implementation language (Rust/Go).
- commit
- 2574ff7b8461d0961bf2fe2c6ea5533daa1f4dea
- author
- bnema · · 2025-10-28 03:18 UTC
- parent
- 4afd200
- signature
- unsigned
3 files · +4 -4
M internal/config/config.go +1 -1
| @@ -200,7 +200,7 @@ var PostBootScripts = []string{ | |||
| 200 | 200 | } | |
| 201 | 201 | ||
| 202 | 202 | // Post-boot service template URL path | |
| 203 | - | const PostBootServiceTemplate = "assets/systemd/archup-first-boot.service" | |
| 203 | + | const PostBootServiceTemplate = "install/post-boot/archup-first-boot.service" | |
| 204 | 204 | ||
| 205 | 205 | // Config holds the installation configuration | |
| 206 | 206 | // This mirrors the shell script's config format for compatibility | |
| @@ -200,7 +200,7 @@ var PostBootScripts = []string{ | |||||
| 200 | } | 200 | } | ||
| 201 | 201 | ||||
| 202 | // Post-boot service template URL path | 202 | // Post-boot service template URL path | ||
| 203 | - | const PostBootServiceTemplate = "assets/systemd/archup-first-boot.service" | 203 | + | const PostBootServiceTemplate = "install/post-boot/archup-first-boot.service" |
| 204 | 204 | ||||
| 205 | // Config holds the installation configuration | 205 | // Config holds the installation configuration | ||
| 206 | // This mirrors the shell script's config format for compatibility | 206 | // This mirrors the shell script's config format for compatibility | ||
M internal/phases/postinstall.go +1 -1
| @@ -688,7 +688,7 @@ func (p *PostInstallPhase) setupPostBoot(progressChan chan<- ProgressUpdate) err | |||
| 688 | 688 | for _, script := range config.PostBootScripts { | |
| 689 | 689 | p.SendOutput(progressChan, fmt.Sprintf("Downloading %s...", script)) | |
| 690 | 690 | ||
| 691 | - | scriptURL := fmt.Sprintf("%s/assets/post-boot/%s", p.config.RawURL, script) | |
| 691 | + | scriptURL := fmt.Sprintf("%s/install/post-boot/%s", p.config.RawURL, script) | |
| 692 | 692 | resp, err := http.Get(scriptURL) | |
| 693 | 693 | switch { | |
| 694 | 694 | case err != nil: | |
| @@ -688,7 +688,7 @@ func (p *PostInstallPhase) setupPostBoot(progressChan chan<- ProgressUpdate) err | |||||
| 688 | for _, script := range config.PostBootScripts { | 688 | for _, script := range config.PostBootScripts { | ||
| 689 | p.SendOutput(progressChan, fmt.Sprintf("Downloading %s...", script)) | 689 | p.SendOutput(progressChan, fmt.Sprintf("Downloading %s...", script)) | ||
| 690 | 690 | ||||
| 691 | - | scriptURL := fmt.Sprintf("%s/assets/post-boot/%s", p.config.RawURL, script) | 691 | + | scriptURL := fmt.Sprintf("%s/install/post-boot/%s", p.config.RawURL, script) |
| 692 | resp, err := http.Get(scriptURL) | 692 | resp, err := http.Get(scriptURL) | ||
| 693 | switch { | 693 | switch { | ||
| 694 | case err != nil: | 694 | case err != nil: | ||
M internal/ui/sections.go +2 -2
| @@ -48,6 +48,6 @@ const ( | |||
| 48 | 48 | DescMultilib = "Required for 32-bit applications and Wine" | |
| 49 | 49 | DescChaoticAUR = "Community repository with pre-built AUR packages" | |
| 50 | 50 | DescAURHelper = "Tool for installing packages from Arch User Repository" | |
| 51 | - | DescAURHelperParu = "Faster with more features (recommended)" | |
| 52 | - | DescAURHelperYay = "Classic, widely compatible" | |
| 51 | + | DescAURHelperParu = "Rust-based AUR helper" | |
| 52 | + | DescAURHelperYay = "Go-based AUR helper" | |
| 53 | 53 | ) | |
| @@ -48,6 +48,6 @@ const ( | |||||
| 48 | DescMultilib = "Required for 32-bit applications and Wine" | 48 | DescMultilib = "Required for 32-bit applications and Wine" | ||
| 49 | DescChaoticAUR = "Community repository with pre-built AUR packages" | 49 | DescChaoticAUR = "Community repository with pre-built AUR packages" | ||
| 50 | DescAURHelper = "Tool for installing packages from Arch User Repository" | 50 | DescAURHelper = "Tool for installing packages from Arch User Repository" | ||
| 51 | - | DescAURHelperParu = "Faster with more features (recommended)" | 51 | + | DescAURHelperParu = "Rust-based AUR helper" |
| 52 | - | DescAURHelperYay = "Classic, widely compatible" | 52 | + | DescAURHelperYay = "Go-based AUR helper" |
| 53 | ) | 53 | ) | ||