From ae6f5b8ad32a2590b969fa66a2dd72ba9e0cf9f5 Mon Sep 17 00:00:00 2001 From: JF Ding Date: Mon, 4 Nov 2024 10:28:21 +0800 Subject: [PATCH] update homebrew formula --- pkg/brew/todor-bin.rb | 11 ++++++----- scripts/sha256-releases.sh | 12 ++++++------ 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/pkg/brew/todor-bin.rb b/pkg/brew/todor-bin.rb index a76914b..4dfdf77 100644 --- a/pkg/brew/todor-bin.rb +++ b/pkg/brew/todor-bin.rb @@ -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 diff --git a/scripts/sha256-releases.sh b/scripts/sha256-releases.sh index b7bb04c..116e485 100755 --- a/scripts/sha256-releases.sh +++ b/scripts/sha256-releases.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/zsh [[ -z $1 ]] && { echo "Usage: $(basename $0) "; exit 1 } version="$1" @@ -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