gatewayd icon indicating copy to clipboard operation
gatewayd copied to clipboard

Create brew install formula for macos

Open wilsonmar opened this issue 2 years ago • 3 comments

When users install using Homebrew, it's only one-step: brew install gatewayd

The install command can be executed on any folder because all formulas are placed in /usr/local/bin
so no changes to .bash_profile PATH is needed.
It also enables users to upgrade all formulae with one command.
 See https://setapp.com/how-to/install-homebrew-on-mac

Example See https://docs.brew.sh/Formula-Cookbook

cask "gatewayd" do
  version "0.8.10"
  sha256 "6af7f2d587b604de9c4789c029fa2b3164d7c694b36cec2f0c4c44e47e58843e"
  url "https://github.com/gatewayd-io/gatewayd/releases/download/v#{version}/gatewayd-darwin-amd64-v#{version}.tar.gz",
      verified: "https://github.com/gatewayd-io/gatewayd"

  name "GatewayD"
  desc "Cloud-native database gateway and framework for building data-driven applications - Like API gateways, for databases"
  homepage "https://docs.gatewayd.io/getting-started/installation/"
end

wilsonmar avatar Jan 28 '24 22:01 wilsonmar

I got license "AGPL-3.0-or-later" code from https://spdx.org/licenses/

wilsonmar avatar Jan 30 '24 14:01 wilsonmar

ERROR: This command is not returning the latest release but old release v0.8.9 git ls-remote --tags "https://github.com/gatewayd-io/gatewayd" | cut -d/ -f3- | tail -n1;

wilsonmar avatar Feb 01 '24 02:02 wilsonmar

Hey @wilsonmar,

Use sort by version and refname:

git ls-remote --tags --sort=v:refname "https://github.com/gatewayd-io/gatewayd" | cut -d/ -f3- | tail -n1;

mostafa avatar Feb 01 '24 13:02 mostafa