mirror of
https://github.com/iterate-ch/cyberduck.git
synced 2026-05-26 19:10:49 +00:00
Replace runtime bundle with openjdk@17 dependency provided by Homebrew.
This commit is contained in:
@@ -5,9 +5,13 @@ class Duck < Formula
|
||||
sha256 "${ARCHIVE.SHA256}"
|
||||
license "GPL-3.0-only"
|
||||
|
||||
depends_on "openjdk@17"
|
||||
|
||||
def install
|
||||
# Because compiling would need a JDK and xcodebuild we just use the pre-compiled binary.
|
||||
libexec.install Dir["*"]
|
||||
rm_r "#{libexec}/Contents/PlugIns/Runtime.jre"
|
||||
ln_s Formula["openjdk@17"].libexec/"openjdk.jdk", "#{libexec}/Contents/PlugIns/Runtime.jre"
|
||||
bin.install_symlink "#{libexec}/Contents/MacOS/duck" => "duck"
|
||||
end
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ class Duck < Formula
|
||||
regex(/href=.*?duck-src[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
||||
end
|
||||
|
||||
depends_on "openjdk@17"
|
||||
depends_on "ant" => :build
|
||||
depends_on "maven" => :build
|
||||
depends_on xcode: :build
|
||||
@@ -25,6 +26,8 @@ class Duck < Formula
|
||||
system "mvn", "-DskipTests", "-Dgit.commitsCount=#{revision}",
|
||||
"--projects", "cli/osx", "--also-make", "verify"
|
||||
libexec.install Dir["cli/osx/target/duck.bundle/*"]
|
||||
rm_r "#{libexec}/Contents/PlugIns/Runtime.jre"
|
||||
ln_s Formula["openjdk@17"].libexec/"openjdk.jdk", "#{libexec}/Contents/PlugIns/Runtime.jre"
|
||||
bin.install_symlink "#{libexec}/Contents/MacOS/duck" => "duck"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user