Repository navigation
Releases
v1.7.4
What's Changed
- fix(cli): pass Deno fetch to gaxios to avoid runtime node-fetch import by @dac-tommy-wu in #11
Full Changelog: v1.7.3...v1.7.4
v1.7.3
What's Changed
- fix(ci): verify-npm 重試到執行檔真的能跑為止 by @dac-tommy-wu in #8
- fix(cli): npm 安裝時 gtm upgrade 改提示使用 npm 升級 by @dac-tommy-wu in #10
Full Changelog: v1.7.2...v1.7.3
v1.7.2
What's Changed
- fix(cli): 消除 punycode DeprecationWarning(DEP0040) by @dac-tommy-wu in #6
- feat(npm): 改用平台子套件發布,移除 postinstall 下載 by @dac-tommy-wu in #7
Full Changelog: v1.7.1...v1.7.2
v1.7.1
v1.7.0
What's Changed
- feat(release): 發布團隊 npm 套件 by @dac-tommy-wu in #1
- feat(cli): 支援從檔案讀取 JSON 與範本內容 by @dac-tommy-wu in #3
New Contributors
- @dac-tommy-wu made their first contribution in #1
Full Changelog: v1.6.2...v1.7.0
v1.6.2 — Fix runtime permission prompt
Highlights
Fixes a runtime permission prompt that appeared on every launch of the compiled binary. After this release, gtm runs without asking for permissions.
What's fixed
🔐 No more Deno requests sys access prompt
The compiled binary was missing the --allow-sys permission. At runtime, googleapis' google-auth-library calls os.release() (i.e. Deno.osRelease(), a "sys" permission) when building its User-Agent header, so Deno interactively prompted on every launch:
⚠️ Deno requests sys access to "osRelease".
Allow? [y/n/A]
Compiled binaries don't remember permission grants, so the prompt came back every time. --allow-sys is now baked into the release build (and the dev/compile tasks), so the binary runs without prompting.
Note: this affected all platforms, not just Windows — it was simply more noticeable on a fresh Windows install.
🔧 CI maintenance
- Upgraded GitHub Actions to their Node 24 versions (
checkoutv6,upload-artifactv7,download-artifactv8,action-gh-releasev3) to clear the Node.js 20 deprecation warnings.
Upgrading
Windows (PowerShell): re-run the installer to pull this version:
irm https://raw.githubusercontent.com/dac-tech-team-tw/gtm-cli/main/install.ps1 | iexAlready installed (any platform):
gtm upgradeAssets
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.6.1...v1.6.2
v1.6.1 — Windows installer
Highlights
Follow-up to v1.6.0 (which added the Windows binary). This release makes installing on Windows a one-liner and cleans up the release pipeline.
What's new
🪟 One-line Windows installer
A new install.ps1 lets Windows users install without manually setting up the PATH:
irm https://raw.githubusercontent.com/dac-tech-team-tw/gtm-cli/main/install.ps1 | iexIt:
- downloads the latest
gtm-windows-x64.exe, - installs it as
gtm.exeinto%LOCALAPPDATA%\Programs\gtm, - adds that folder to your user
PATH(no admin required).
Open a new terminal afterwards, then run gtm auth login.
📝 Docs
- README documents the Windows PowerShell install, lists the Windows binary in the download table, and notes Windows in the CI build summary.
🔧 CI
- Removed the
publish-npmjob from the release workflow (this fork does not publish the@owntagnpm package, so the job always failed).
Manual install (alternative)
- Download
gtm-windows-x64.exefrom the assets below. - Rename it to
gtm.exeand place it in a folder on yourPATH. - Run
gtm auth login.
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.6.0...v1.6.1
v1.6.0 — Windows support
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 onwindows-latestfor thex86_64-pc-windows-msvctarget). - npm install support:
npm install -g @owntag/gtm-clinow resolves the correctgtm-binary.exe, maps thewin32-x64platform, and skips the Unix-onlychmodstep on Windows.win32is added to the package's supportedoslist.
🐛 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):
- Download
gtm-windows-x64.exefrom the assets below. - Rename it to
gtm.exeand place it somewhere on yourPATH. - Run
gtm auth login.
npm (all platforms):
npm install -g @owntag/gtm-cliAssets
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