29 lines
983 B
Ruby
29 lines
983 B
Ruby
class QuiltInstaller < Formula
|
|
desc "Installer for Quilt for the vanilla launcher"
|
|
homepage "https://quiltmc.org/"
|
|
url "https://maven.quiltmc.org/repository/release/org/quiltmc/quilt-installer/0.5.0/quilt-installer-0.5.0.jar"
|
|
sha256 "dbf8cf54e546259c7d1bdbc5a4445b0a4ba9c3fafcef9efb943897b6097a77b9"
|
|
license "Apache-2.0"
|
|
|
|
livecheck do
|
|
url "https://maven.quiltmc.org/repository/release/org/quiltmc/quilt-installer/maven-metadata.xml"
|
|
regex(%r{<version>v?(\d+(?:\.\d+)+)</version>}i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "33bb9dd233f1b94b84cff2e8fecaff5814eb7502c1f04a306099dc15cf934836"
|
|
end
|
|
|
|
depends_on "openjdk"
|
|
|
|
def install
|
|
libexec.install "quilt-installer-#{version}.jar"
|
|
bin.write_jar_script libexec/"quilt-installer-#{version}.jar", "quilt-installer"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/quilt-installer", "install", "server", "1.19.2"
|
|
assert_predicate testpath/"server/quilt-server-launch.jar", :exist?
|
|
end
|
|
end
|