Skip to content

Fix --binary installer failure when no GitHub release exists#12

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/fix-windows-installation-errors
Draft

Fix --binary installer failure when no GitHub release exists#12
Copilot wants to merge 3 commits intomainfrom
copilot/fix-windows-installation-errors

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 10, 2026

install.ps1 --binary and install.sh --binary blindly hit releases/latest/download/ and abort with a misleading "check your internet connection" error when no release has been published.

Changes

  • API pre-check: Query api.github.com/repos/.../releases/latest before attempting download to distinguish "no release exists" from "network error" from "asset missing from release"
  • Fallback to source build: On any binary download failure, prompt the user to build from source instead of hard-aborting
  • Specific error messages: Three distinct failure paths get distinct messages (no releases, wrong assets, download failure)
  • Deduplicated fallback logic: Extracted Fallback-ToSourceBuild (ps1) / fallback_to_source_build (sh) helpers

Before

[error] Failed to download binary from https://github.com/.../pea-windows-x86_64.exe
[error] Check your internet connection or try the source install (without --binary).
# exits 1

After

[error] No releases found for HKTITAN/PeaToPea.
[error] The project has not published a release yet.
[warn]  Pre-built binary is not available.
  Would you like to build from source instead? [y/N]:

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits February 10, 2026 08:11
- install.ps1: Use GitHub API to check for releases before downloading,
  provide clear error messages, and offer fallback to source build
- install.sh: Same improvements for Linux/macOS installer

Co-authored-by: HKTITAN <67830098+HKTITAN@users.noreply.github.com>
Reduces code duplication as suggested by code review:
- install.ps1: Extract Fallback-ToSourceBuild function
- install.sh: Extract fallback_to_source_build function

Co-authored-by: HKTITAN <67830098+HKTITAN@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix all Windows installation errors for PeaPod Fix --binary installer failure when no GitHub release exists Feb 10, 2026
Copilot AI requested a review from HKTITAN February 10, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants