diff --git a/todo.rb b/todo.rb index 4a774b4..b532558 100644 --- a/todo.rb +++ b/todo.rb @@ -1,16 +1,46 @@ +# typed: false +# frozen_string_literal: true + +# This file was generated by GoReleaser. DO NOT EDIT. class Todo < Formula - desc "A simple CLI todo application written in Go" + desc "A simple CLI tool to manage your todo list." homepage "https://github.com/AmanTahiliani/todo" - version "v0.3.1-alpha" + version "0.3.2-alpha" license "MIT" - depends_on "go" => :build + on_macos do + if Hardware::CPU.intel? + url "https://github.com/AmanTahiliani/todo/releases/download/v0.3.2-alpha/todo_Darwin_x86_64.tar.gz" + sha256 "767e7db19b15536be1fb7eb3f77ac477b85cb89f0afd459a7c589f253dc05ccd" - def install - system "go", "build", "-o", bin/"todo", "./cmd/todo" + def install + bin.install "todo" + end + end + if Hardware::CPU.arm? + url "https://github.com/AmanTahiliani/todo/releases/download/v0.3.2-alpha/todo_Darwin_arm64.tar.gz" + sha256 "ee8fe3d9b371e45405b9715583f27eb47d88849766d1e94e82e8c5053d2d3e87" + + def install + bin.install "todo" + end + end end - test do - system "#{bin}/todo", "--help" + on_linux do + if Hardware::CPU.intel? and Hardware::CPU.is_64_bit? + url "https://github.com/AmanTahiliani/todo/releases/download/v0.3.2-alpha/todo_Linux_x86_64.tar.gz" + sha256 "45c818accc61ec9c7a79fd0122127be759aa8452e35d8b17b3b3ff83ee0ef1fd" + def install + bin.install "todo" + end + end + if Hardware::CPU.arm? and Hardware::CPU.is_64_bit? + url "https://github.com/AmanTahiliani/todo/releases/download/v0.3.2-alpha/todo_Linux_arm64.tar.gz" + sha256 "55e85bec08e911e6b0b473e8b1f248ffae08dd135934a5df798876fdbd1a4348" + def install + bin.install "todo" + end + end end -end \ No newline at end of file +end