From 79f51785f96c3ff4bdfdf78717a743702f098009 Mon Sep 17 00:00:00 2001 From: Oscaner Miao Date: Sun, 14 Jan 2024 18:20:32 +0800 Subject: [PATCH] fix: fix alist-cli formulae --- Formula/alist-cli.rb | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/Formula/alist-cli.rb b/Formula/alist-cli.rb index dd7100b..ea3b9f6 100644 --- a/Formula/alist-cli.rb +++ b/Formula/alist-cli.rb @@ -1,28 +1,29 @@ class AlistCli < Formula desc "File list program that supports multiple storage, powered by Gin and Solidjs" homepage "https://github.com/alist-org/alist" - url "https://github.com/alist-org/alist/archive/refs/tags/v3.30.0.tar.gz", verified: "mirror.ghproxy.com/" - sha256 "68831d5177cdbae3ab294ce4263b4221c0ff687a72dd48a844d533ccb13c3efb" + + if OS.mac? && Hardware::CPU.arm? + url "https://mirror.ghproxy.com/https://github.com/alist-org/alist/releases/download/v3.29.1/alist-darwin-arm64.tar.gz", verified: "mirror.ghproxy.com/" + sha256 "78b6d3071b6ef8afbb8d2c3c4fdc88627f1e0e1fa61e76675fd4731596c2c965" + elsif OS.mac? && !Hardware::CPU.arm? + url "https://mirror.ghproxy.com/https://github.com/alist-org/alist/releases/download/v3.29.1/alist-darwin-amd64.tar.gz", verified: "mirror.ghproxy.com/" + sha256 "64d2fdcab56b35ac8bc2e84def30f883aa3c3b4603f0b921f066af41f45a0a8c" + elsif !OS.mac? && Hardware::CPU.arm? + url "https://mirror.ghproxy.com/https://github.com/alist-org/alist/releases/download/v3.29.1/alist-linux-arm64.tar.gz", verified: "mirror.ghproxy.com/" + sha256 "606a6bcff1abd25bd5aaaf9663b62bfd3281e575dda9df1852b2e48f23511cae" + elsif !OS.mac? && !Hardware::CPU.arm? + url "https://mirror.ghproxy.com/https://github.com/alist-org/alist/releases/download/v3.29.1/alist-linux-amd64.tar.gz", verified: "mirror.ghproxy.com/" + sha256 "81f66e521fe48cb18daadab2d175116201d3ef6b5d5d7bbac1835493eb6e1c81" + end + + version "3.29.1" license "AGPL-3.0" - head "https://github.com/alist-org/alist.git", branch: "main" livecheck do - url :stable + url "https://github.com/alist-org/alist/releases" strategy :github_latest end - bottle do - sha256 cellar: :any_skip_relocation, arm64_sonoma: "78b6d3071b6ef8afbb8d2c3c4fdc88627f1e0e1fa61e76675fd4731596c2c965" - sha256 cellar: :any_skip_relocation, arm64_ventura: "78b6d3071b6ef8afbb8d2c3c4fdc88627f1e0e1fa61e76675fd4731596c2c965" - sha256 cellar: :any_skip_relocation, arm64_monterey: "78b6d3071b6ef8afbb8d2c3c4fdc88627f1e0e1fa61e76675fd4731596c2c965" - sha256 cellar: :any_skip_relocation, arm64_big_sur: "78b6d3071b6ef8afbb8d2c3c4fdc88627f1e0e1fa61e76675fd4731596c2c965" - sha256 cellar: :any_skip_relocation, sonoma: "64d2fdcab56b35ac8bc2e84def30f883aa3c3b4603f0b921f066af41f45a0a8c" - sha256 cellar: :any_skip_relocation, ventura: "64d2fdcab56b35ac8bc2e84def30f883aa3c3b4603f0b921f066af41f45a0a8c" - sha256 cellar: :any_skip_relocation, monterey: "64d2fdcab56b35ac8bc2e84def30f883aa3c3b4603f0b921f066af41f45a0a8c" - sha256 cellar: :any_skip_relocation, big_sur: "64d2fdcab56b35ac8bc2e84def30f883aa3c3b4603f0b921f066af41f45a0a8c" - sha256 cellar: :any_skip_relocation, x86_64_linux: "81f66e521fe48cb18daadab2d175116201d3ef6b5d5d7bbac1835493eb6e1c81" - end - def install bin.install "alist" end