Skip to content

Commit

Permalink
jdownloader url changes
Browse files Browse the repository at this point in the history
  • Loading branch information
daeho-ro committed Apr 5, 2024
1 parent c9fa860 commit 718ec0b
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions Casks/j/jdownloader.rb
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
cask "jdownloader" do
version "48254"
arch arm: "aarch64", intel: "amd64"

version :latest
sha256 :no_check

url "https://installer.jdownloader.org/clean/JD2Setup.dmg",
user_agent: :fake
url "https://installer.jdownloader.org/homebrew/latest/JDownloader2Setup_macos-#{arch}_v21.dmg"
name "JDownloader"
desc "Download manager"
homepage "https://jdownloader.org/"

livecheck do
url "https://svn.jdownloader.org/build.php"
regex(/Revision:.*?(\d+)[\s<]/i)
end

auto_updates true

preflight do
system_command "#{staged_path}/JDownloader Installer.app/Contents/MacOS/JavaApplicationStub",
system_command "#{staged_path}/JDownloader 2 Installer.app/Contents/MacOS/JavaApplicationStub",
args: [
"-dir", appdir.to_s,
"-q",
Expand All @@ -29,7 +23,7 @@
end

uninstall delete: [
"#{appdir}/JDownloader 2.0",
"#{appdir}/JDownloader 2",
"#{appdir}/JDownloader2.app",
]

Expand Down

0 comments on commit 718ec0b

Please sign in to comment.