apidash icon indicating copy to clipboard operation
apidash copied to clipboard

Add brew install support

Open ashitaprasad opened this issue 10 months ago • 9 comments

API Dash is currently not available on Homebrew. Contributors can help us in the following ways:

  1. Provide Step by step details on how to create a build and release it.
  2. CI/CD pipeline which prepares and publishes the build on FlatHub whenever pubspec.yaml version is bumped.

Developers are requested to add (1) in https://github.com/foss42/apidash/blob/main/doc/dev_guide/packaging.md

Once (1) is completed (2) can be taken up.

Related issues & discussions - https://github.com/foss42/apidash/discussions/240

ashitaprasad avatar Jan 25 '25 01:01 ashitaprasad

Hey @ashitaprasad I'd like to take this if no one's working on it currently

deepraj02 avatar Jan 27 '25 17:01 deepraj02

@deepraj02 Sure, please go ahead

ashitaprasad avatar Jan 28 '25 15:01 ashitaprasad

I have previously distributed apps with homebrew (it was a CLI application written in Go ), the usual process was to build and create a new release everytime I push an update with a tag and using GoReleaser and Github Actions I would easily distribute the apps (for Homebrew).

  • For this we need 2 things 1 tap repository which will store the .rb files required.
  • We'll need to setup auto releases for APIDash.

deepraj02 avatar Feb 10 '25 17:02 deepraj02

Nice @deepraj02 You can send a PR with the detailed instructions added to this page under the Homebrew section - https://github.com/foss42/apidash/blob/main/doc/dev_guide/packaging.md

ashitaprasad avatar Feb 10 '25 20:02 ashitaprasad

Great.

deepraj02 avatar Feb 11 '25 16:02 deepraj02

@deepraj02 Anything you'd like to add to the PR feel free to discuss

Mrudul111 avatar Feb 12 '25 09:02 Mrudul111

@ashitaprasad I was thinking on starting the CI/CD work for the homebrew upload. The crucial step in the deployment is .tar to a service so that we could generate the download link to put in .rb file. Should I use GitHub release for that on my forked repo or any other service like S3?

Mrudul111 avatar Feb 16 '25 13:02 Mrudul111

I'm already on it and been testing the builds locally, having some issues with code signing as of now.

deepraj02 avatar Feb 17 '25 23:02 deepraj02

I'm already on it and been testing the builds locally, having some issues with code signing as of now.

Issue while running flutter build macos?

Mrudul111 avatar Feb 18 '25 09:02 Mrudul111