Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/scripts/update-homebrew.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

: "${VERSION:?VERSION is not set}"

SHASUM=$(curl -sL "https://github.com/Matars/gitfetch/archive/refs/tags/v${VERSION}.tar.gz" | shasum -a 256 | awk '{print $1}')

sed -i '6s/.*/ url "https:\/\/github.com\/Matars\/gitfetch\/archive\/refs\/tags\/v'${VERSION}'.tar.gz"/' Formula/gitfetch.rb
sed -i '7s/.*/ sha256 "'${SHASUM}'"/' Formula/gitfetch.rb

CERTIFI_SHASUM=$(curl -sL "https://files.pythonhosted.org/packages/4c/5b/b6ce21586237c77ce67d01dc5507039d444b630dd76611bbca2d8e5dcd91/certifi-2025.10.5.tar.gz" | shasum -a 256 | awk '{print $1}')
sed -i '14s/.*/ sha256 "'${CERTIFI_SHASUM}'"/' Formula/gitfetch.rb

CHARSET_NORMALIZER_SHASUM=$(curl -sL "https://files.pythonhosted.org/packages/13/69/33ddede1939fdd074bce5434295f38fae7136463422fe4fd3e0e89b98062/charset_normalizer-3.4.4.tar.gz" | shasum -a 256 | awk '{print $1}')
sed -i '19s/.*/ sha256 "'${CHARSET_NORMALIZER_SHASUM}'"/' Formula/gitfetch.rb

IDNA_SHASUM=$(curl -sL "https://files.pythonhosted.org/packages/6f/6d/0703ccc57f3a7233505399edb88de3cbd678da106337b9fcde432b65ed60/idna-3.11.tar.gz" | shasum -a 256 | awk '{print $1}')
sed -i '24s/.*/ sha256 "'${IDNA_SHASUM}'"/' Formula/gitfetch.rb

READCHAR_SHASUM=$(curl -sL "https://files.pythonhosted.org/packages/dd/f8/8657b8cbb4ebeabfbdf991ac40eca8a1d1bd012011bd44ad1ed10f5cb494/readchar-4.2.1.tar.gz" | shasum -a 256 | awk '{print $1}')
sed -i '29s/.*/ sha256 "'${READCHAR_SHASUM}'"/' Formula/gitfetch.rb

REQUESTS_SHASUM=$(curl -sL "https://files.pythonhosted.org/packages/c9/74/b3ff8e6c8446842c3f5c837e9c3dfcfe2018ea6ecef224c710c85ef728f4/requests-2.32.5.tar.gz" | shasum -a 256 | awk '{print $1}')
sed -i '34s/.*/ sha256 "'${REQUESTS_SHASUM}'"/' Formula/gitfetch.rb

URLLIB3_SHASUM=$(curl -sL "https://files.pythonhosted.org/packages/15/22/9ee70a2574a4f4599c47dd506532914ce044817c7752a79b6a51286319bc/urllib3-2.5.0.tar.gz" | shasum -a 256 | awk '{print $1}')
sed -i '39s/.*/ sha256 "'${URLLIB3_SHASUM}'"/' Formula/gitfetch.rb
16 changes: 8 additions & 8 deletions Formula/gitfetch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,40 @@ class Gitfetch < Formula

desc "A neofetch alternative for GitHub quick view"
homepage "https://github.com/Matars/gitfetch"
url "https://github.com/Matars/gitfetch/archive/refs/tags/v1.2.0.tar.gz"
sha256 "a4db93164c974401e757d65134f7eb1d2324e900bdb9260cc97a00897a7a4213"
url "https://github.com/Matars/gitfetch/archive/refs/tags/v1.2.1.tar.gz"
sha256 "6fb7537fb15c15c9e6d8456a44ae3efd5b1d1daff2fde4d983ac8e784f2fe437"
license "GPL-2.0"

depends_on "python@3.14"

resource "certifi" do
url "https://files.pythonhosted.org/packages/4c/5b/b6ce21586237c77ce67d01dc5507039d444b630dd76611bbca2d8e5dcd91/certifi-2025.10.5.tar.gz"
sha256 "a4db93164c974401e757d65134f7eb1d2324e900bdb9260cc97a00897a7a4213"
sha256 "47c09d31ccf2acf0be3f701ea53595ee7e0b8fa08801c6624be771df09ae7b43"
end

resource "charset-normalizer" do
url "https://files.pythonhosted.org/packages/13/69/33ddede1939fdd074bce5434295f38fae7136463422fe4fd3e0e89b98062/charset_normalizer-3.4.4.tar.gz"
sha256 "a4db93164c974401e757d65134f7eb1d2324e900bdb9260cc97a00897a7a4213"
sha256 "94537985111c35f28720e43603b8e7b43a6ecfb2ce1d3058bbe955b73404e21a"
end

resource "idna" do
url "https://files.pythonhosted.org/packages/6f/6d/0703ccc57f3a7233505399edb88de3cbd678da106337b9fcde432b65ed60/idna-3.11.tar.gz"
sha256 "a4db93164c974401e757d65134f7eb1d2324e900bdb9260cc97a00897a7a4213"
sha256 "795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902"
end

resource "readchar" do
url "https://files.pythonhosted.org/packages/dd/f8/8657b8cbb4ebeabfbdf991ac40eca8a1d1bd012011bd44ad1ed10f5cb494/readchar-4.2.1.tar.gz"
sha256 "a4db93164c974401e757d65134f7eb1d2324e900bdb9260cc97a00897a7a4213"
sha256 "91ce3faf07688de14d800592951e5575e9c7a3213738ed01d394dcc949b79adb"
end

resource "requests" do
url "https://files.pythonhosted.org/packages/c9/74/b3ff8e6c8446842c3f5c837e9c3dfcfe2018ea6ecef224c710c85ef728f4/requests-2.32.5.tar.gz"
sha256 "a4db93164c974401e757d65134f7eb1d2324e900bdb9260cc97a00897a7a4213"
sha256 "dbba0bac56e100853db0ea71b82b4dfd5fe2bf6d3754a8893c3af500cec7d7cf"
end

resource "urllib3" do
url "https://files.pythonhosted.org/packages/15/22/9ee70a2574a4f4599c47dd506532914ce044817c7752a79b6a51286319bc/urllib3-2.5.0.tar.gz"
sha256 "a4db93164c974401e757d65134f7eb1d2324e900bdb9260cc97a00897a7a4213"
sha256 "3fc47733c7e419d4bc3f6b3dc2b4f890bb743906a30d56ba4a5bfa4bbff92760"
end

def install
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ brew install matars/homebrew-gitfetch/gitfetch
Or tap the repository first:

```bash
brew tap matars/homebrew-gitfetch
brew tap matars/gitfetch
brew install gitfetch
```

Expand Down