Skip to content

feat: support Git Bash PATH setup in install scripts#89

Merged
rhuanbarreto merged 5 commits into
mainfrom
feat/install-git-bash-path-support
Mar 19, 2026
Merged

feat: support Git Bash PATH setup in install scripts#89
rhuanbarreto merged 5 commits into
mainfrom
feat/install-git-bash-path-support

Conversation

@rhuanbarreto

Copy link
Copy Markdown
Contributor

Summary

  • install.sh: Add MINGW/MSYS2 platform detection so install.sh can run directly from Git Bash on Windows — downloads the .zip artifact and installs archgate.exe
  • install.ps1: After updating the Windows User PATH, detect Git Bash shell profiles (~/.bashrc, ~/.bash_profile, ~/.profile) and offer to add a POSIX-formatted export PATH line

Fixes the issue where archgate was not found in Git Bash sessions after installing via PowerShell, because the Windows PATH update doesn't always propagate to Git Bash shell profiles.

Test plan

  • Run install.ps1 on a Windows machine with Git Bash installed and a ~/.profile — verify it prompts to update the shell profile
  • Run install.ps1 on a Windows machine without any bash profiles — verify no Git Bash section is shown
  • Run install.sh from Git Bash (MINGW64) — verify it detects win32 platform, downloads .zip, and installs archgate.exe
  • Verify idempotency: run installer twice — second run should skip already-configured profiles

Windows users running Git Bash (MINGW/MSYS2) were not getting the
archgate bin directory added to their shell profiles, causing
`archgate` to not be found in Git Bash sessions.

- install.sh: add MINGW/MSYS2 platform detection, download .zip
  artifact, and install archgate.exe on Windows
- install.ps1: detect Git Bash shell profiles (~/.bashrc,
  ~/.bash_profile, ~/.profile) and offer to add PATH export with
  POSIX-formatted path
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Mar 19, 2026

Copy link
Copy Markdown

Deploying archgate-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 565f01f
Status: ✅  Deploy successful!
Preview URL: https://3699f709.archgate-cli.pages.dev
Branch Preview URL: https://feat-install-git-bash-path-s.archgate-cli.pages.dev

View logs

rhuanbarreto and others added 4 commits March 19, 2026 15:28
Document that install.sh now works in Git Bash/MSYS2 on Windows and
that install.ps1 detects Git Bash shell profiles for PATH setup.
Add _redirects file for Cloudflare Pages so install scripts are
available at shorter, branded URLs:
- cli.archgate.dev/install-unix  -> install.sh
- cli.archgate.dev/install-windows -> install.ps1

Update all docs (EN + PT-BR), README, and CI integration guides to
use the new short URLs with https://.
@rhuanbarreto rhuanbarreto merged commit 57a5cef into main Mar 19, 2026
9 checks passed
@rhuanbarreto rhuanbarreto deleted the feat/install-git-bash-path-support branch March 19, 2026 14:46
@github-actions github-actions Bot mentioned this pull request Mar 19, 2026
rhuanbarreto added a commit that referenced this pull request Mar 20, 2026
* feat: support Git Bash PATH setup in install scripts

Windows users running Git Bash (MINGW/MSYS2) were not getting the
archgate bin directory added to their shell profiles, causing
`archgate` to not be found in Git Bash sessions.

- install.sh: add MINGW/MSYS2 platform detection, download .zip
  artifact, and install archgate.exe on Windows
- install.ps1: detect Git Bash shell profiles (~/.bashrc,
  ~/.bash_profile, ~/.profile) and offer to add PATH export with
  POSIX-formatted path

* docs: add Git Bash installation instructions to EN and PT-BR pages

Document that install.sh now works in Git Bash/MSYS2 on Windows and
that install.ps1 detects Git Bash shell profiles for PATH setup.

* docs: regenerate llms-full.txt

* feat: add install URL redirects via Cloudflare Pages

Add _redirects file for Cloudflare Pages so install scripts are
available at shorter, branded URLs:
- cli.archgate.dev/install-unix  -> install.sh
- cli.archgate.dev/install-windows -> install.ps1

Update all docs (EN + PT-BR), README, and CI integration guides to
use the new short URLs with https://.

* docs: regenerate llms-full.txt
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