forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Homebrew#172552 from Homebrew/migrate-p
various casks (p-r): migrate
- Loading branch information
Showing
17 changed files
with
859 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
cask "paragon-extfs@11" do | ||
version "11.8.605" | ||
sha256 :no_check | ||
|
||
url "https://dl.paragon-software.com/demo/trial_extfs.dmg" | ||
name "extFS for Mac by Paragon Software" | ||
desc "Read/write support for ext2/3/4 formatted volumes" | ||
homepage "https://www.paragon-software.com/home/extfs-mac/" | ||
|
||
livecheck do | ||
url :url | ||
strategy :extract_plist do |items| | ||
items["com.paragon-software.filesystems.extfs"].short_version | ||
end | ||
end | ||
|
||
conflicts_with cask: "paragon-extfs" | ||
depends_on macos: ">= :sierra" | ||
|
||
installer manual: "FSInstaller.app" | ||
|
||
uninstall launchctl: "com.paragon-software.extfs*", | ||
quit: "com.paragon-software.extfs*", | ||
signal: [ | ||
["KILL", "com.paragon-software.extfs.FSMenuApp"], | ||
["KILL", "com.paragon-software.extfs.notification-agent"], | ||
], | ||
kext: "com.paragon-software.filesystems.extfs", | ||
pkgutil: "com.paragon-software.pkg.extfs" | ||
|
||
zap trash: [ | ||
"~/Library/Application Support/com.paragon-software.extfs.*", | ||
"~/Library/Caches/com.paragon-software.extfs.fsapp", | ||
"~/Library/HTTPStorages/com.paragon-software.extfs.*", | ||
"~/Library/Preferences/com.paragon-software.extfs.fsapp.plist", | ||
"~/Library/Saved Application State/com.paragon-software.extfs.fsapp.savedState", | ||
"~/Library/WebKit/com.paragon-software.extfs.fsapp", | ||
] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
cask "parallels@12" do | ||
version "12.2.1-41615" | ||
sha256 "d5aff59a541bf3483cbed9c740b3a740ba7ebb922fcee4a7ab90e2645ce49fcb" | ||
|
||
url "https://download.parallels.com/desktop/v#{version.major}/#{version}/ParallelsDesktop-#{version}.dmg" | ||
name "Parallels Desktop" | ||
desc "Desktop virtualization software" | ||
homepage "https://www.parallels.com/products/desktop/" | ||
|
||
livecheck do | ||
url "https://kb.parallels.com/123948" | ||
regex(/(\d+(?:\.\d+)+)(?:\s*| )\((\d+)\)/i) | ||
strategy :page_match do |page, regex| | ||
page.scan(regex).map { |match| "#{match[0]}-#{match[1]}" } | ||
end | ||
end | ||
|
||
conflicts_with cask: %w[ | ||
parallels | ||
parallels13 | ||
parallels14 | ||
parallels15 | ||
parallels16 | ||
parallels17 | ||
parallels18 | ||
] | ||
depends_on macos: "<= :sierra" | ||
|
||
app "Parallels Desktop.app" | ||
|
||
postflight do | ||
# Unhide the application | ||
system_command "/usr/bin/chflags", | ||
args: ["nohidden", "#{appdir}/Parallels Desktop.app"], | ||
sudo: true | ||
|
||
# Run the initialization script | ||
system_command "#{appdir}/Parallels Desktop.app/Contents/MacOS/inittool", | ||
args: ["init", "-b", "#{appdir}/Parallels Desktop.app"], | ||
sudo: true | ||
end | ||
|
||
uninstall_preflight do | ||
set_ownership "#{appdir}/Parallels Desktop.app" | ||
end | ||
|
||
uninstall delete: [ | ||
"/usr/local/bin/prl_convert", | ||
"/usr/local/bin/prl_disk_tool", | ||
"/usr/local/bin/prl_perf_ctl", | ||
"/usr/local/bin/prlcore2dmp", | ||
"/usr/local/bin/prlctl", | ||
"/usr/local/bin/prlexec", | ||
"/usr/local/bin/prlsrvctl", | ||
] | ||
|
||
zap trash: [ | ||
"~/.parallels_settings", | ||
"~/Library/Caches/com.parallels.desktop.console", | ||
"~/Library/Preferences/com.parallels.desktop.console.LSSharedFileList.plist", | ||
"~/Library/Preferences/com.parallels.desktop.console.plist", | ||
"~/Library/Preferences/com.parallels.Parallels Desktop Statistics.plist", | ||
"~/Library/Preferences/com.parallels.Parallels Desktop.plist", | ||
"~/Library/Preferences/com.parallels.Parallels.plist", | ||
] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
cask "parallels@13" do | ||
version "13.3.2-43368" | ||
sha256 "a79bb516ed3ec81c5b2c9150b1d605c2a2fc596e426effe24177693939db795f" | ||
|
||
url "https://download.parallels.com/desktop/v#{version.major}/#{version}/ParallelsDesktop-#{version}.dmg" | ||
name "Parallels Desktop" | ||
desc "Desktop virtualization software" | ||
homepage "https://www.parallels.com/products/desktop/" | ||
|
||
livecheck do | ||
url "https://kb.parallels.com/124262" | ||
regex(/(\d+(?:\.\d+)+)(?:\s*| )\((\d+)\)/i) | ||
strategy :page_match do |page, regex| | ||
page.scan(regex).map { |match| "#{match[0]}-#{match[1]}" } | ||
end | ||
end | ||
|
||
conflicts_with cask: %w[ | ||
parallels | ||
parallels12 | ||
parallels14 | ||
parallels15 | ||
parallels16 | ||
parallels17 | ||
parallels18 | ||
] | ||
depends_on macos: "<= :high_sierra" | ||
|
||
app "Parallels Desktop.app" | ||
|
||
postflight do | ||
# Unhide the application | ||
system_command "/usr/bin/chflags", | ||
args: ["nohidden", "#{appdir}/Parallels Desktop.app"], | ||
sudo: true | ||
|
||
# Run the initialization script | ||
system_command "#{appdir}/Parallels Desktop.app/Contents/MacOS/inittool", | ||
args: ["init", "-b", "#{appdir}/Parallels Desktop.app"], | ||
sudo: true | ||
end | ||
|
||
uninstall_preflight do | ||
set_ownership "#{appdir}/Parallels Desktop.app" | ||
end | ||
|
||
uninstall delete: [ | ||
"/usr/local/bin/prl_convert", | ||
"/usr/local/bin/prl_disk_tool", | ||
"/usr/local/bin/prl_perf_ctl", | ||
"/usr/local/bin/prlcore2dmp", | ||
"/usr/local/bin/prlctl", | ||
"/usr/local/bin/prlexec", | ||
"/usr/local/bin/prlsrvctl", | ||
] | ||
|
||
zap trash: [ | ||
"~/.parallels_settings", | ||
"~/Library/Caches/com.parallels.desktop.console", | ||
"~/Library/Preferences/com.parallels.desktop.console.LSSharedFileList.plist", | ||
"~/Library/Preferences/com.parallels.desktop.console.plist", | ||
"~/Library/Preferences/com.parallels.Parallels Desktop Statistics.plist", | ||
"~/Library/Preferences/com.parallels.Parallels Desktop.plist", | ||
"~/Library/Preferences/com.parallels.Parallels.plist", | ||
] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
cask "parallels@14" do | ||
version "14.1.3-45485" | ||
sha256 "34c9c345642fa30f9d240a76062c5672e399349d5e5984db9c208d22e099f8b9" | ||
|
||
url "https://download.parallels.com/desktop/v#{version.major}/#{version}/ParallelsDesktop-#{version}.dmg" | ||
name "Parallels Desktop" | ||
desc "Desktop virtualization software" | ||
homepage "https://www.parallels.com/products/desktop/" | ||
|
||
livecheck do | ||
url "https://kb.parallels.com/124521" | ||
regex(/(\d+(?:\.\d+)+)(?:\s*| )\((\d+)\)/i) | ||
strategy :page_match do |page, regex| | ||
page.scan(regex).map { |match| "#{match[0]}-#{match[1]}" } | ||
end | ||
end | ||
|
||
auto_updates true | ||
conflicts_with cask: %w[ | ||
parallels | ||
parallels12 | ||
parallels13 | ||
parallels15 | ||
parallels16 | ||
parallels17 | ||
parallels18 | ||
] | ||
depends_on macos: [ | ||
:el_capitan, | ||
:sierra, | ||
:high_sierra, | ||
:mojave, | ||
] | ||
# This .dmg cannot be extracted normally | ||
# Original discussion: https://github.com/Homebrew/homebrew-cask/pull/67202 | ||
container type: :naked | ||
|
||
preflight do | ||
system_command "/usr/bin/hdiutil", | ||
args: ["attach", "-nobrowse", "#{staged_path}/ParallelsDesktop-#{version}.dmg"] | ||
system_command "/Volumes/Parallels Desktop #{version.major}/Parallels Desktop.app/Contents/MacOS/inittool", | ||
args: ["install", "-t", "#{appdir}/Parallels Desktop.app", "-s"], | ||
sudo: true | ||
system_command "/usr/bin/hdiutil", | ||
args: ["detach", "/Volumes/Parallels Desktop #{version.major}"] | ||
end | ||
|
||
postflight do | ||
# Unhide the application | ||
system_command "/usr/bin/chflags", | ||
args: ["nohidden", "#{appdir}/Parallels Desktop.app"], | ||
sudo: true | ||
|
||
# Run the initialization script | ||
system_command "#{appdir}/Parallels Desktop.app/Contents/MacOS/inittool", | ||
args: ["init", "-b", "#{appdir}/Parallels Desktop.app"], | ||
sudo: true | ||
end | ||
|
||
uninstall_preflight do | ||
set_ownership "#{appdir}/Parallels Desktop.app" | ||
end | ||
|
||
uninstall delete: [ | ||
"/Applications/Parallels Desktop.app", | ||
"/Applications/Parallels Desktop.app/Contents/Applications/Parallels Link.app", | ||
"/Applications/Parallels Desktop.app/Contents/Applications/Parallels Mounter.app", | ||
"/Applications/Parallels Desktop.app/Contents/Applications/Parallels Technical Data Reporter.app", | ||
"/Applications/Parallels Desktop.app/Contents/MacOS/Parallels Service.app", | ||
"/Applications/Parallels Desktop.app/Contents/MacOS/Parallels VM.app", | ||
"/usr/local/bin/prl_convert", | ||
"/usr/local/bin/prl_disk_tool", | ||
"/usr/local/bin/prl_perf_ctl", | ||
"/usr/local/bin/prlcore2dmp", | ||
"/usr/local/bin/prlctl", | ||
"/usr/local/bin/prlexec", | ||
"/usr/local/bin/prlsrvctl", | ||
] | ||
|
||
zap trash: [ | ||
"~/.parallels_settings", | ||
"~/Library/Caches/com.parallels.desktop.console", | ||
"~/Library/Preferences/com.parallels.desktop.console.LSSharedFileList.plist", | ||
"~/Library/Preferences/com.parallels.desktop.console.plist", | ||
"~/Library/Preferences/com.parallels.Parallels Desktop Statistics.plist", | ||
"~/Library/Preferences/com.parallels.Parallels Desktop.plist", | ||
"~/Library/Preferences/com.parallels.Parallels.plist", | ||
] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
cask "parallels@16" do | ||
version "16.5.2-50703" | ||
sha256 "97c01c7baad422192158e25516e394889008b992cb759fe3498a66acc2ae16b0" | ||
|
||
url "https://download.parallels.com/desktop/v#{version.major}/#{version}/ParallelsDesktop-#{version}.dmg" | ||
name "Parallels Desktop" | ||
desc "Desktop virtualization software" | ||
homepage "https://www.parallels.com/products/desktop/" | ||
|
||
livecheck do | ||
url "https://kb.parallels.com/125053" | ||
regex(/(\d+(?:\.\d+)+)(?:\s*| )\((\d+)\)/i) | ||
strategy :page_match do |page, regex| | ||
page.scan(regex).map { |match| "#{match[0]}-#{match[1]}" } | ||
end | ||
end | ||
|
||
auto_updates true | ||
conflicts_with cask: %w[ | ||
parallels | ||
parallels12 | ||
parallels13 | ||
parallels14 | ||
parallels15 | ||
parallels17 | ||
parallels18 | ||
] | ||
depends_on macos: ">= :high_sierra" | ||
|
||
app "Parallels Desktop.app" | ||
|
||
preflight do | ||
system_command "chflags", | ||
args: ["nohidden", "#{staged_path}/Parallels Desktop.app"] | ||
system_command "xattr", | ||
args: ["-d", "com.apple.FinderInfo", "#{staged_path}/Parallels Desktop.app"] | ||
end | ||
|
||
postflight do | ||
system_command "#{appdir}/Parallels Desktop.app/Contents/MacOS/inittool", | ||
args: ["init"], | ||
sudo: true | ||
end | ||
|
||
uninstall_preflight do | ||
set_ownership "#{appdir}/Parallels Desktop.app" | ||
end | ||
|
||
uninstall signal: ["TERM", "com.parallels.desktop.console"], | ||
delete: [ | ||
"/Library/Preferences/Parallels", | ||
"/usr/local/bin/prl_convert", | ||
"/usr/local/bin/prl_disk_tool", | ||
"/usr/local/bin/prl_perf_ctl", | ||
"/usr/local/bin/prlcore2dmp", | ||
"/usr/local/bin/prlctl", | ||
"/usr/local/bin/prlexec", | ||
"/usr/local/bin/prlsrvctl", | ||
] | ||
|
||
zap trash: [ | ||
"~/.parallels_settings", | ||
"~/Applications (Parallels)", | ||
"~/Library/Application Scripts/*.com.parallels.Desktop", | ||
"~/Library/Application Scripts/com.parallels.desktop*", | ||
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.parallels.desktop.console.sfl*", | ||
"~/Library/Caches/com.apple.helpd/Generated/com.parallels.desktop.console.help*", | ||
"~/Library/Caches/com.parallels.desktop.console", | ||
"~/Library/Caches/Parallels Software/Parallels Desktop", | ||
"~/Library/Containers/com.parallels.desktop*", | ||
"~/Library/Group Containers/*.com.parallels.Desktop", | ||
"~/Library/Logs/parallels.log", | ||
"~/Library/Parallels/Applications Menus", | ||
"~/Library/Parallels/Parallels Desktop", | ||
"~/Library/Preferences/com.parallels.desktop.console.LSSharedFileList.plist", | ||
"~/Library/Preferences/com.parallels.desktop.console.plist", | ||
"~/Library/Preferences/com.parallels.Parallels Desktop Events.plist", | ||
"~/Library/Preferences/com.parallels.Parallels Desktop Statistics.plist", | ||
"~/Library/Preferences/com.parallels.Parallels Desktop.plist", | ||
"~/Library/Preferences/com.parallels.Parallels.plist", | ||
"~/Library/Preferences/com.parallels.PDInfo.plist", | ||
"~/Library/Preferences/Parallels", | ||
"~/Library/Saved Application State/com.parallels.desktop.console.savedState", | ||
], | ||
rmdir: [ | ||
"/Users/Shared/Parallels", | ||
"~/Library/Caches/Parallels Software", | ||
"~/Library/Parallels", | ||
"~/Parallels", | ||
] | ||
end |
Oops, something went wrong.