Skip to content

Commit a432ec2

Browse files
authored
Merge pull request #178648 from khipp/update-idrive
idrive: update livecheck, use versioned url
2 parents 0369ea9 + a5cc561 commit a432ec2

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

Casks/i/idrive.rb

+15-5
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,31 @@
11
cask "idrive" do
2-
version "3.5.10.79"
3-
sha256 :no_check
2+
version "3.5.10.80,070624"
3+
sha256 "231518ded3b6273e56ae68c98bfb068d90c6a7e836fa761f29ad8d402d243714"
44

5-
url "https://www.idrive.com/downloads/IDrive.dmg"
5+
url "https://static.idriveonlinebackup.com/downloads/#{version.csv.second}/IDrive.dmg",
6+
verified: "static.idriveonlinebackup.com/downloads/"
67
name "iDrive"
78
desc "Cloud backup and storage solution"
89
homepage "https://www.idrive.com/"
910

1011
livecheck do
11-
url :url
12-
strategy :extract_plist
12+
url "https://static.idriveonlinebackup.com/downloads/version_mac.js"
13+
strategy :page_match do |page|
14+
version_match = page.match(/Version:?\s*v?(\d+(?:\.\d+)+)/i)
15+
next if version_match.blank?
16+
17+
id_match = page.match(%r{downloads/([^/]+?)/}i)
18+
next if id_match.blank?
19+
20+
"#{version_match[1]},#{id_match[1]}"
21+
end
1322
end
1423

1524
pkg "IDrive.pkg"
1625

1726
uninstall launchctl: [
1827
"com.iDrive.FinderPluginApp",
28+
"com.prosoftnet.DaemonHelper",
1929
"IDriveDaemon",
2030
"IDSyncDaemon",
2131
"IDWifiManager",

0 commit comments

Comments
 (0)