Gitea: Homebrew
Go to file
markkrj 10c0dc82d8 Fix homebrew tap by removing head and shipping compiled binaries (#136)
fixes #135

This fix Homebrew tap by removing the head method and shipping only pre-compiled binaries, as you guys already ship binaries for most (all?) supported platforms.

Also, for gitea.rb and tea.rb, I removed the curl for fetching files checksum, because for every install, it runs `curl` 5 times, slowing the install. So, I created a script to bump versions to latest and fix sha256 checksum in the formula files.

I created also an gitea-head and tea-head formulae to download latest pre-compiled binaries for head, and here we are fetching checksum by `curl`, as I imagine, it is not common/recommended scenario.

IMO, this is the best possible approach for shipping binaries from a custom tap.

Co-authored-by: Marcos de Oliveira <markinholiveira@gmail.com>
Reviewed-on: https://gitea.com/gitea/homebrew-gitea/pulls/136
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: markkrj <markkrj@noreply.gitea.io>
Co-committed-by: markkrj <markkrj@noreply.gitea.io>
2021-06-30 02:00:18 +08:00
.github Add .github & update contributing/maintainers file 2017-01-24 21:59:59 +01:00
.editorconfig Initial commit 2016-11-25 14:46:19 +01:00
CONTRIBUTING.md Add .github & update contributing/maintainers file 2017-01-24 21:59:59 +01:00
CONTRIBUTORS Initial commit 2016-11-25 14:46:19 +01:00
DCO Initial commit 2016-11-25 14:46:19 +01:00
LICENSE Initial commit 2016-11-25 14:46:19 +01:00
MAINTAINERS Update MAINTAINERS file 2019-01-02 19:13:38 +01:00
README.md Update README to add tea and changelog (#103) 2020-07-19 03:37:21 +00:00
bump_version.sh Fix homebrew tap by removing head and shipping compiled binaries (#136) 2021-06-30 02:00:18 +08:00
changelog.rb Move from deprecated "devel" to "head" (#109) 2020-08-29 15:33:00 +00:00
gitea-head.rb Fix homebrew tap by removing head and shipping compiled binaries (#136) 2021-06-30 02:00:18 +08:00
gitea.rb Fix homebrew tap by removing head and shipping compiled binaries (#136) 2021-06-30 02:00:18 +08:00
tea-head.rb Fix homebrew tap by removing head and shipping compiled binaries (#136) 2021-06-30 02:00:18 +08:00
tea.rb Fix homebrew tap by removing head and shipping compiled binaries (#136) 2021-06-30 02:00:18 +08:00

README.md

Gitea: Homebrew

Join the chat at https://img.shields.io/discord/322538954119184384.svg

Homebrew repository to install Gitea and tools on macOS.

Prepare

brew tap gitea/tap https://gitea.com/gitea/homebrew-gitea

Install

gitea

brew install gitea
gitea -h

tea

brew install tea
tea -h

changelog

brew install changelog
changelog -h

Upgrade

In case you installed Gitea before v1.8.3, you still might have the old tap. In that case, you need to remove it and add the new tap via

brew untap go-gitea/gitea
brew tap gitea/tap https://gitea.com/gitea/homebrew-gitea

Once you updated the tap, you can upgrade via

brew update && brew upgrade gitea tea changelog

Uninstall

You can uninstall Gitea with

brew uninstall gitea tea changelog

Note that this will only uninstall the gitea binary. Your repositories, configuration, database, logs etc. are still kept in their locations (to check which folders Gitea is using, see Site administration -> Configuration).

Contributing

Fork -> Patch -> Push -> Pull Request

Authors

License

This project is under the MIT License. See the LICENSE file for the full license text.

Copyright (c) 2016 The Gitea Authors <https://gitea.io>