From 4b7a83a737ec0733707adaea1c9622b0f5fdd6c1 Mon Sep 17 00:00:00 2001 From: Razvan Azamfirei Date: Thu, 2 May 2024 13:07:27 -0400 Subject: [PATCH] parallels15: migrate --- Casks/parallels15.rb | 80 -------------------------------------------- tap_migrations.json | 1 + 2 files changed, 1 insertion(+), 80 deletions(-) delete mode 100644 Casks/parallels15.rb diff --git a/Casks/parallels15.rb b/Casks/parallels15.rb deleted file mode 100644 index b8da9f8ada6c04..00000000000000 --- a/Casks/parallels15.rb +++ /dev/null @@ -1,80 +0,0 @@ -cask "parallels15" do - version "15.1.5-47309" - sha256 "94df473f7bddfd1371f78fd32d7f7bb16e5c9a1d1b39751bed77c992b6d3013e" - - 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/124724" - 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: [ - "parallels", - "homebrew/cask-versions/parallels12", - "homebrew/cask-versions/parallels13", - "homebrew/cask-versions/parallels14", - "homebrew/cask-versions/parallels16", - "homebrew/cask-versions/parallels17", - "homebrew/cask-versions/parallels18", - ] - depends_on macos: [ - :sierra, - :high_sierra, - :mojave, - :catalina, - ] - - 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: [ - "/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.apple.helpd/Generated/com.parallels.desktop.console.help*", - "~/Library/Caches/com.parallels.desktop.console", - "~/Library/Caches/Parallels Software/Parallels Desktop", - "~/Library/Logs/parallels.log", - "~/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", - ] -end diff --git a/tap_migrations.json b/tap_migrations.json index 6eecfff9338e06..5101259f0322fd 100644 --- a/tap_migrations.json +++ b/tap_migrations.json @@ -121,6 +121,7 @@ "parallels12": "homebrew/cask/parallels@12", "parallels13": "homebrew/cask/parallels@13", "parallels14": "homebrew/cask/parallels@14", + "parallels15": "homebrew/cask/parallels@15", "parallels16": "homebrew/cask/parallels@16", "parallels17": "homebrew/cask/parallels@17", "parallels18": "homebrew/cask/parallels@18",