Skip to content

v1.6.0 — Windows support

Choose a tag to compare

@github-actions github-actions released this 17 Jun 02:36
· 28 commits to main since this release

Highlights

This release adds Windows support to GTM CLI. A prebuilt gtm-windows-x64.exe is now produced for every release, the npm installer knows how to fetch it, and the OAuth login flow now works correctly on Windows.

What's new

🪟 Windows is now a supported platform

  • Prebuilt binary: releases now include gtm-windows-x64.exe (built on windows-latest for the x86_64-pc-windows-msvc target).
  • npm install support: npm install -g @owntag/gtm-cli now resolves the correct gtm-binary.exe, maps the win32-x64 platform, and skips the Unix-only chmod step on Windows. win32 is added to the package's supported os list.

🐛 Fixed OAuth login on Windows

Previously, gtm auth login on Windows opened the browser via cmd /c start <url>. Because cmd.exe treats & as a command separator, the Google authorization URL was truncated at the first &, dropping response_type, redirect_uri, scope and the rest. Google then rejected the request with:

Error 400: invalid_request — Required parameter is missing: response_type

The browser is now opened via rundll32 url.dll,FileProtocolHandler <url>, which receives the full URL as a single argument with no shell re-parsing.

Installation

Windows (binary):

  1. Download gtm-windows-x64.exe from the assets below.
  2. Rename it to gtm.exe and place it somewhere on your PATH.
  3. Run gtm auth login.

npm (all platforms):

npm install -g @owntag/gtm-cli

Assets

  • gtm-windows-x64.exe — Windows (x64)
  • gtm-darwin-arm64 — macOS (Apple Silicon)
  • gtm-darwin-x64 — macOS (Intel)
  • gtm-linux-x64 — Linux (x64)

Full Changelog: v1.5.8...v1.6.0