feat: Prepares for bump-version formula
This commit is contained in:
21
Formula/bump-version.rb
Normal file
21
Formula/bump-version.rb
Normal 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
|
||||
Reference in New Issue
Block a user