Repository navigation
Install and find cloudflared on Windows - #4
Merged
Merged
Conversation
Without Homebrew God Mode downloaded the macOS .tgz and unpacked it with /usr/bin/tar, so Address -> Connect failed on Windows with "Unpacking cloudflared-darwin-amd64.tgz failed". On Windows it now downloads cloudflared-windows-amd64.exe straight into bin/ and looks for it as cloudflared.exe. macOS behaves as before.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
On Windows, Address → Connect fails with
Unpacking cloudflared-darwin-amd64.tgz failed:. Without Homebrew,install()always downloads the macOS.tgzand unpacks it with/usr/bin/tar, and God Mode's own copy is looked up asbin/cloudflared, without.exe.This PR, on Windows only:
cloudflared-windows-amd64.exestraight into~/.paseo/god-mode/bin/cloudflared.exe(Cloudflare publishes no Windows arm64 build; the amd64 one runs under emulation on Windows 11 on ARM);cloudflared.exe;signIn()why thePATHoverride also keeps cloudflared from opening a browser on Windows (it launches it throughcmd, which thatPATHhides);docs/configuration.md.macOS behaves exactly as before.
Scope
Only installing and finding
cloudflared. With the binary in place, the rest already worked on Windows: sign-in,tunnel create,route dns,tunnel run, the gateway and assistant tool calls. The voice button stays Mac-only, and the docs still describe a Mac.A known limit this PR leaves alone: on Windows cloudflared takes its home directory from
HOMEbeforeUSERPROFILE, whileos.homedir()ignoresHOME. WithHOMEset somewhere else (MSYS2, Cygwin), the sign-in watcher would look forcert.pemin the wrong place.Testing
Windows 11 x64, Node 22.22.2, Paseo 0.15.4.
npm run check: the typecheck is clean and 334 of 342 tests pass. The 8 failures fail the same way onmainon Windows (server/process.test.tsneedscat;server/voice-button/mac.test.tsis macOS-only), and neither file importscloudflared.ts.Tunnel.beginSetup()withGOD_MODE_DATA_DIRpointing at an empty directory downloaded cloudflared 2026.11.0 tobin\cloudflared.exeand reachedsigning-inwith the Cloudflare login link.stop()left no cloudflared process behind.tunnel runwork, and an assistant's tool calls reach Paseo through the tunnel.🤖 Generated with Claude Code