Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Create brew install formula for macos #421

Open
wilsonmar opened this issue Jan 28, 2024 · 3 comments
Open

Create brew install formula for macos #421

wilsonmar opened this issue Jan 28, 2024 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@wilsonmar
Copy link

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
Copy link
Author

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

@mostafa mostafa added the enhancement New feature or request label Jan 31, 2024
@mostafa mostafa added the good first issue Good for newcomers label Jan 31, 2024
@wilsonmar
Copy link
Author

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;

@mostafa
Copy link
Member

mostafa commented Feb 1, 2024

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 mostafa removed the good first issue Good for newcomers label Feb 1, 2024
@mostafa mostafa modified the milestone: v0.8.x Feb 2, 2024
@mostafa mostafa added this to the v0.9.x milestone Mar 4, 2024
@mostafa mostafa added the good first issue Good for newcomers label Mar 4, 2024
@mostafa mostafa modified the milestones: v0.9.x, v0.10.x Oct 15, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Development

No branches or pull requests

2 participants