Skip to content

feat: install script for Windows#2228

Merged
dunglas merged 4 commits intomainfrom
feat/install-windows
Mar 2, 2026
Merged

feat: install script for Windows#2228
dunglas merged 4 commits intomainfrom
feat/install-windows

Conversation

@dunglas
Copy link
Member

@dunglas dunglas commented Mar 1, 2026

Update the shell script and add a PowerShell script to install the Windows binary.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Windows support to the existing install flow by updating install.sh to download/extract the Windows ZIP when running under common Windows POSIX layers (MSYS/Cygwin/MinGW), and introduces a native PowerShell installer script for Windows users.

Changes:

  • Update install.sh to download the latest Windows x64 ZIP asset and extract it into BIN_DIR.
  • Add install.ps1 to download the latest Windows release ZIP via GitHub API and extract it to a chosen directory.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
install.sh Adds a Windows-specific branch to download and extract the latest Windows ZIP asset.
install.ps1 New PowerShell installer that fetches the latest Windows ZIP asset and expands it to BIN_DIR (or current directory).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

install.ps1 Outdated
$tmpZip = Join-Path $env:TEMP "frankenphp-windows-$PID.zip"

try {
Invoke-WebRequest -Uri $asset.browser_download_url -OutFile $tmpZip -UseBasicParsing
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Invoke-WebRequest -UseBasicParsing will fail in PowerShell 6+/7+ because that parameter was removed, and #Requires -Version 5.1 still allows newer PowerShell versions. Consider removing -UseBasicParsing or only using it when running on Windows PowerShell 5.1.

Suggested change
Invoke-WebRequest -Uri $asset.browser_download_url -OutFile $tmpZip -UseBasicParsing
Invoke-WebRequest -Uri $asset.browser_download_url -OutFile $tmpZip

Copilot uses AI. Check for mistakes.
@dunglas dunglas merged commit c2b8c8b into main Mar 2, 2026
93 of 95 checks passed
@dunglas dunglas deleted the feat/install-windows branch March 2, 2026 14:31
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