excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / suspicious-package.rb
blob617f48825bbb4cbb4908e18db372884174aeac0c
1 cask "suspicious-package" do
2   on_sierra :or_older do
3     version "3.4.1"
4     sha256 "e4673a0c590e7dcb711789d98fcadd2283c2152d262b7809dfd8c8a1b3e9094b"
6     url "https://www.mothersruin.com/software/downloads/SuspiciousPackage-#{version}.dmg"
8     livecheck do
9       skip "Legacy version"
10     end
11   end
12   on_high_sierra do
13     version "3.5.3"
14     sha256 "fad69db99a60058f8136954653fa2de81667f12cb731957a6d921d36ceaf195d"
16     url "https://www.mothersruin.com/software/downloads/SuspiciousPackage-#{version}.dmg"
18     livecheck do
19       skip "Legacy version"
20     end
21   end
22   on_mojave do
23     version "4.0"
24     sha256 "844708fb75f8aa102f3ede8ddef3c20180f469b7bc8ec65bbc0370ce9f7db33c"
26     url "https://www.mothersruin.com/software/downloads/SuspiciousPackage-#{version}.dmg"
28     livecheck do
29       skip "Legacy version"
30     end
31   end
32   on_catalina do
33     version "4.2.1"
34     sha256 "5c05df9bf3d56758a3eefa972597e3138afdea4c3774f91fe2849482b7112823"
36     url "https://www.mothersruin.com/software/downloads/SuspiciousPackage-#{version}.dmg"
38     livecheck do
39       skip "Legacy version"
40     end
41   end
42   on_big_sur do
43     version "4.3.3"
44     sha256 "a262c317ad2d6949e0d0f2bec9524a4a85e0e69d6aec0373cf185892acac1f69"
46     url "https://www.mothersruin.com/software/downloads/SuspiciousPackage-#{version}.dmg"
48     livecheck do
49       skip "Legacy version"
50     end
51   end
52   on_monterey :or_newer do
53     version "4.5,1213"
54     sha256 :no_check
56     url "https://www.mothersruin.com/software/downloads/SuspiciousPackage.dmg"
58     livecheck do
59       url "https://www.mothersruin.com/software/SuspiciousPackage/data/SuspiciousPackageVersionInfo.plist"
60       strategy :xml do |xml|
61         short_version = xml.elements["//key[text()='CFBundleShortVersionString']"]&.next_element&.text
62         version = xml.elements["//key[text()='CFBundleVersion']"]&.next_element&.text
63         next if short_version.blank? || version.blank?
65         "#{short_version.strip},#{version.strip}"
66       end
67     end
68   end
70   name "Suspicious Package"
71   desc "Application for inspecting installer packages"
72   homepage "https://www.mothersruin.com/software/SuspiciousPackage/"
74   app "Suspicious Package.app"
75   binary "#{appdir}/Suspicious Package.app/Contents/SharedSupport/spkg"
77   zap trash: [
78     "~/Library/Application Scripts/com.mothersruin.SuspiciousPackageApp.QLPreview",
79     "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.mothersruin.suspiciouspackageapp.sfl*",
80     "~/Library/Caches/com.mothersruin.SuspiciousPackageApp",
81     "~/Library/Caches/com.mothersruin.XPCService.UpdateChecker",
82     "~/Library/Containers/com.mothersruin.SuspiciousPackageApp.QLPreview",
83     "~/Library/Preferences/com.mothersruin.SuspiciousPackage.plist",
84     "~/Library/Preferences/com.mothersruin.SuspiciousPackageApp.plist",
85     "~/Library/Saved Application State/com.mothersruin.SuspiciousPackageApp.savedState",
86     "~/Library/WebKit/com.mothersruin.SuspiciousPackageApp",
87   ]
88 end