feat: Prepares for bump-version formula

This commit is contained in:
2024-12-24 16:45:11 -05:00
parent e89533a323
commit 3f4408ac6c
4 changed files with 34 additions and 92 deletions

21
Formula/bump-version.rb Normal file
View File

@@ -0,0 +1,21 @@
class BumpVersion < Formula
desc "Command-line tool for managing versions of a swift command-line application."
homepage "https://git.housh.dev/michael/bump-version.git"
url "https://git.housh.dev/michael/bump-version/archive/0.2.0.tar.gz"
sha256 "fixme"
license "MIT"
version "0.2.0"
depends_on xcode: ["16.0", :build]
uses_from_macos "swift" => :build
def install
system "swift", "build", "--disable-sandbox", "--configuration", "release", "--product" "bump-version"
bin.install ".build/release/bump-version"
generate_completions_from_executable(bin/"bump-version", "--generate-completion-script")
end
test do
system "#{bin}/bump-version", "--version"
end
end