Skip to content

updated get-app#49

Merged
jeffreyaven merged 8 commits into
mainfrom
feature/updates
Jun 24, 2026
Merged

updated get-app#49
jeffreyaven merged 8 commits into
mainfrom
feature/updates

Conversation

@jeffreyaven

Copy link
Copy Markdown
Member
  • moved to cloudflare
  • added smoke tests
  • added windows install script

jeffreyaven and others added 8 commits June 24, 2026 09:40
Port the get-stackql-deploy.io platform-detect/redirect service from a Deno
Deploy app to a Cloudflare Worker. The handler logic is unchanged - all three
behaviours (UA-based release redirect, /install.sh installer, fallback redirect)
use Web-standard APIs, so only the runtime entrypoint changed from Deno.serve to
a Module Worker fetch handler.

- src/index.ts: ported handler
- wrangler.toml: custom_domain route for the apex (Wrangler manages DNS)
- package.json, tsconfig.json, .gitignore: worker tooling
- README.md: dev, deploy, and DNS cutover instructions

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pins the dependency tree for reproducible installs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The first wrangler deploy fails the custom-domain trigger with a 409 because the
old Deno apex record is still present. Document the delete-and-redeploy fix and
the dashboard override alternative.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Serve a PowerShell installer from the worker so Windows users get a one-liner
(irm https://get-stackql-deploy.io/install.ps1 | iex) matching the curl | sh flow
on Linux/macOS. It downloads and expands the Windows zip into the current
directory. Update the worker README and getting-started docs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- /install now detects the calling shell from the User-Agent and serves the sh
  installer for curl/wget or the PowerShell installer for irm/iwr. /install.sh
  and /install.ps1 remain as explicit verbose options.
- Fetching install.sh from PowerShell (or install.ps1 from curl/wget) returns a
  short message in the right shell's language pointing at the correct command,
  instead of a cascade of interpreter errors.
- install.sh detects POSIX-shell-on-Windows (MINGW/MSYS/CYGWIN) and install.ps1
  detects PowerShell-on-non-Windows, each pointing at the other installer.
- Replace "unsupported OS/arch" wording with friendly "no prebuilt binary for
  your CPU/system" messages linking the releases and docs pages.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
test-get-app.sh and test-get-app.ps1 verify the live get-stackql-deploy.io
worker: Cloudflare origin, every installer path / wrong-shell guard, the
UA-based root redirects, and a real end-to-end install + run of the platform
binary. The sh script stops at its Windows-shell guard when run under Git Bash;
run it on macOS/Linux for the full install path.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Each check now prints a green PASS or red FAIL, all checks run instead of
bailing on the first failure, and both scripts end with a colored summary box
and a non-zero exit on any failure. The sh script gates ANSI codes on a TTY so
piped output stays clean; the PowerShell script uses -ForegroundColor.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jeffreyaven jeffreyaven merged commit 175268b into main Jun 24, 2026
2 checks passed
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.

1 participant