Skip to content

Commit 8d79abb

Browse files
committed
fix(brew): update brew script with version key, update brew install dirs
1 parent ef36bc9 commit 8d79abb

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

release/scripts/homebrew.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ async function updateCgFormula(brewDir) {
150150
const url = `${CLI_ASSETS_URL}/cg-v${SHORT_VERSION}/${zipFile}`
151151

152152
const templateReplaced = template
153+
.replace('__VERSION__', SHORT_VERSION)
153154
.replace('__CLI_DOWNLOAD_URL__', url)
154155
.replace('__TARBALL_HASH__', sha256)
155156
.replace('__NODE_VERSION__', NODE_VERSION)

release/templates/cg.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
class Cg < Formula
66
desc "Query your cloud and SaaS data with GraphQL"
77
homepage "https://cloudgraph.dev"
8+
version "__VERSION__"
89
url "__CLI_DOWNLOAD_URL__"
910
sha256 "__TARBALL_HASH__"
1011

src/commands/base.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ export default abstract class BaseCommand extends Command {
9494
)} is available: ${this.config.version} -> ${cliLatestVersion}. \n
9595
you can update based on how you installed CG \n
9696
NPM: ${chalk.italic.green('npm i -g @cloudgraph/cli')} \n
97-
homebrew: ${chalk.italic.green('brew upgrade cloudgraphdev/tap/cg')}`)
97+
homebrew: 1. ${chalk.italic.green('brew update')} \n
98+
2. ${chalk.italic.green('brew upgrade cloudgraphdev/tap/cg')}`)
9899
}
99100
const configDir = this.getCGConfigKey('directory') ?? 'cg'
100101
this.versionDirectory = directory ?? configDir

0 commit comments

Comments
 (0)