Skip to content

Commit

Permalink
update homebrew formula
Browse files Browse the repository at this point in the history
  • Loading branch information
jfding committed Nov 4, 2024
1 parent d89c4c0 commit ae6f5b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
11 changes: 6 additions & 5 deletions pkg/brew/todor-bin.rb
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
class TodorBin < Formula
version 'v1.10.0'
version 'v1.10.1'
desc "todor - yet another cli TODO in Rust"
homepage "https://github.com/jfding/todor"

on_macos do
on_intel do
url "https://github.com/jfding/todor/releases/download/#{version}/todor-x86_64-apple-darwin.zip"
sha256 "69aaff12164c7a0076836f8de6feac445232e48919a5f1c4272d31e042dc5b2e"
sha256 "087b5df14322d2873f8f6268610bba4636cffd9db5f1ae1f8634db02db9c449b"

end
on_arm do
url "https://github.com/jfding/todor/releases/download/#{version}/todor-aarch64-apple-darwin.zip"
sha256 "a8713e804cc2f190119dd99a482af9254a088613ed1ea0ff55655ba7e98acf0d"
sha256 "c6d04438480dc0e85554ef502795db07cd519802f4f0700d30809d4b26239906"
end
end
on_linux do
on_intel do
url "https://github.com/jfding/todor/releases/download/#{version}/todor-x86_64-unknown-linux-musl.zip"
sha256 "7848dc9d17e644f7496a9232d589628e0e4cf8f506dc8927a5404986816ecf34"
sha256 "8946b71bea92ae26de35804ce3773551fd3e6a9810dedf92dad58816a6ee87cd"
end
on_arm do
url "https://github.com/jfding/todor/releases/download/#{version}/todor-aarch64-unknown-linux-musl.zip"
sha256 "6df8410f2e7a39716a0e5397ca649341628459957b38d6f53379368790ba5be4"
sha256 "ba7b39a5ca327c27237f9e51e859fbf47b32cf5155ac01a5d7f0bbfb65a3aa2e"
end
end

Expand Down
12 changes: 6 additions & 6 deletions scripts/sha256-releases.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/zsh

[[ -z $1 ]] && { echo "Usage: $(basename $0) <version>"; exit 1 }
version="$1"
Expand All @@ -13,8 +13,8 @@ for arch in aarch64 x86_64; do
done

# Source.
for ext in zip tar.gz; do
url="https://github.com/jfding/todor/archive/refs/tags/$version.$ext"
sha=$(curl -sfSL "$url" | sha256sum)
echo "source.$ext $sha"
done
# for ext in zip tar.gz; do
# url="https://github.com/jfding/todor/archive/refs/tags/$version.$ext"
# sha=$(curl -sfSL "$url" | sha256sum)
# echo "source.$ext $sha"
# done

0 comments on commit ae6f5b8

Please sign in to comment.