Files
homebrew-formula/Formula/bump-version.rb

29 lines
1.2 KiB
Ruby

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/swift-bump-version/archive/0.2.0.tar.gz"
sha256 "e5cb3b113211ea117e959fcd01dcd9a758e3995d2e2550f9e410432e47c3ef90"
license "MIT"
version "0.2.0"
bottle do
root_url "https://git.housh.dev/michael/swift-bump-version/releases/download/0.2.0"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "c27c1599e475be1f8c42d7cc066b0bd38276c638c1b2d7ec498ce450e536aac8"
end
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")
system "swift", "package", "--disable-sandbox", "--allow-writing-to-package-directory", "generate-manual"
man1.install Dir[".build/plugins/GenerateManual/outputs/bump-version/*"]
end
test do
system "#{bin}/bump-version", "--version"
end
end