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

View File

@@ -1,32 +1,32 @@
class Hpa < Formula
desc "Command-line tool for managine home assesment projects"
desc "Command-line tool for managing home assesment projects"
homepage "https://git.housh.dev/michael/swift-hpa.git"
url "https://git.housh.dev/michael/swift-hpa/archive/v0.1.1.tar.gz"
sha256 "e6424672802fae056e423f3af77fda5a9c9bb5307ac2712ff8bfd072c1642a3b"
url "https://git.housh.dev/michael/swift-hpa/archive/v0.1.5.tar.gz"
sha256 "806402e82f9dedd52d50fc7c78bc725418766702512df6b08fa77c3f5d041011"
license "MIT"
version "0.1.5"
bottle do
root_url "https://git.housh.dev/michael/swift-hpa/releases/download/v0.1.1"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sequoia: "b93acab399346d8babcebfb85a6e2b8081715737caa926c5a0e53335e987e24c"
root_url "https://git.housh.dev/michael/swift-hpa/releases/download/v0.1.5"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "81fbda33673ec59512c69f1029c4054354f2b8467eb805fbab9c0e486064d4f2"
end
depends_on xcode: ["16.0", :build]
depends_on "just" => :build
depends_on "ansible"
depends_on "imagemagick"
depends_on "pandoc"
depends_on "texLive"
uses_from_macos "swift" => :build
def install
args = if OS.mac?
["--disable-sandbox"]
else
["--static-swift-stdlib"]
end
system "swift", "build", *args, "-c", "release", "--product", "hpa"
system "swift", "build", "--disable-sandbox", "--configuration", "release", "--product", "hpa"
bin.install ".build/release/hpa"
generate_completions_from_executable(bin/"hpa", "--generate-completion-script")
end
test do
system "true"
system "#{bin}/hpa", "--version"
end
end