Skip to content

Commit

Permalink
Merge pull request #172545 from Homebrew/migrate-m
Browse files Browse the repository at this point in the history
various casks (m-o): migrate
  • Loading branch information
miccal authored Apr 30, 2024
2 parents a83dfef + d8800e5 commit 50cee6e
Show file tree
Hide file tree
Showing 18 changed files with 520 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Casks/m/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
cask "macloggerdx@beta" do
version "6.51b13"
sha256 :no_check

url "https://www.dogparksoftware.com/files/MacLoggerDX.beta.dmg"
name "MacLoggerDX"
desc "Ham radio logging and rig control software"
homepage "https://www.dogparksoftware.com/MacLoggerDX.html"

livecheck do
url :homepage
regex(/Download:\s*v?(\d+(?:\.\d+)+b\d+)/i)
end

conflicts_with cask: "macloggerdx"
depends_on macos: ">= :high_sierra"

app "MacLoggerDX.app"

zap trash: [
"~/Library/Caches/com.apple.helpd/Generated/MacLoggerDX Help*",
"~/Library/Caches/com.dogparksoftware.MacLoggerDX",
"~/Library/HTTPStorages/com.dogparksoftware.MacLoggerDX",
"~/Library/Preferences/com.dogparksoftware.MacLoggerDX*.plist",
]
end
31 changes: 31 additions & 0 deletions Casks/m/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
cask "mailmate@beta" do
version "5937"
sha256 :no_check

url "https://updates.mailmate-app.com/archives/MailMateBeta.tbz",
verified: "mailmate-app.com/"
name "MailMate"
desc "IMAP email client"
homepage "https://freron.com/"

livecheck do
url "https://updates.mailmate-app.com/beta_release_notes"
regex(/Revision\s(\d+)/i)
end

conflicts_with cask: "mailmate"
depends_on macos: ">= :sierra"

app "MailMate.app"
binary "#{appdir}/MailMate.app/Contents/Resources/emate"

zap trash: [
"~/Library/Application Scripts/com.freron.MailMate.MailMateShare",
"~/Library/Application Support/MailMate",
"~/Library/Caches/com.apple.helpd/Generated/MailMate Help*1.13.2",
"~/Library/Caches/com.freron.MailMate",
"~/Library/Containers/com.freron.MailMate.MailMateShare",
"~/Library/Preferences/com.freron.MailMate.plist",
"~/Library/Saved Application State/com.freron.MailMate.savedState",
]
end
24 changes: 24 additions & 0 deletions Casks/m/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
cask "mi@beta" do
version "3.7.9"
sha256 "483d204dee40348490c8264b5c370ca6788d9e4250e4571fbdd47ded573421bd"

url "https://www.mimikaki.net/download/mi#{version}.dmg"
name "mi"
desc "Text editor"
homepage "https://www.mimikaki.net/download/beta.html"

livecheck do
url "https://www.mimikaki.net/download/appcast_beta.xml"
strategy :sparkle, &:short_version
end

conflicts_with cask: "mi"
depends_on macos: ">= :high_sierra"

app "mi.app"

zap trash: [
"~/Library/Caches/net.mimikaki.mi",
"~/Library/Preferences/net.mimikaki.mi.plist",
]
end
55 changes: 55 additions & 0 deletions Casks/m/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
cask "microsoft-teams@classic" do
version "1.7.00.9457"
sha256 "04f893edc91b3e7c47961fc5e866810e93a619257be6bfc67d24eb2d5cbd9b4f"

url "https://statics.teams.cdn.office.net/production-osx/#{version}/Teams_osx.pkg",
verified: "statics.teams.cdn.office.net/production-osx/"
name "Microsoft Teams Classic"
desc "Meet, chat, call, and collaborate in just one place"
homepage "https://www.microsoft.com/en-us/microsoft-teams/group-chat-software"

# Microsoft releases multiple versions and builds of Teams, as listed here:
# https://raw.githubusercontent.com/ItzLevvie/MicrosoftTeams-msinternal/master/defconfig
# and here:
# https://raw.githubusercontent.com/ItzLevvie/MicrosoftTeams-msinternal/master/defconfig2
#
# We only track the "production build"/"Public (R4) build" version,
# which agrees with the version reported by `livecheck`.
#
# Any pull request that updates this Cask to a version that
# differs from the `livecheck` version will be closed.
livecheck do
url "https://aka.ms/teamsmac"
strategy :header_match
end

auto_updates true
conflicts_with cask: "microsoft-office-businesspro"
depends_on macos: ">= :el_capitan"

pkg "Teams_osx.pkg"

uninstall launchctl: "com.microsoft.teams.TeamsUpdaterDaemon",
pkgutil: [
"com.microsoft.MSTeamsAudioDevice",
"com.microsoft.teams",
],
delete: [
"/Applications/Microsoft Teams classic.app",
"/Library/Logs/Microsoft/Teams",
"/Library/Preferences/com.microsoft.teams.plist",
]

zap trash: [
"~/Library/Application Support/com.microsoft.teams",
"~/Library/Application Support/Microsoft/Teams",
"~/Library/Application Support/Teams",
"~/Library/Caches/com.microsoft.teams",
"~/Library/Cookies/com.microsoft.teams.binarycookies",
"~/Library/Logs/Microsoft Teams",
"~/Library/Preferences/com.microsoft.teams.plist",
"~/Library/Saved Application State/com.microsoft.teams.savedState",
"~/Library/WebKit/com.microsoft.teams",
],
rmdir: "~/Library/Application Support/Microsoft"
end
34 changes: 34 additions & 0 deletions Casks/m/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
cask "mixxx@snapshot" do
arch arm: "arm", intel: "intel"

version "2.5-alpha-346-g64f48e834a"
sha256 arm: "f3cef71c3d7bc832167250b19dd70207732b454f828d856745586bb6adc735bd",
intel: "5b6e8c728bbdbe6cceb6934edc8e7e8b00ee4a80a6ebc2461851146aa104ab71"

on_arm do
depends_on macos: ">= :big_sur"
end
on_intel do
depends_on macos: ">= :catalina"
end

url "https://downloads.mixxx.org/snapshots/main/mixxx-#{version}-macos#{arch}.dmg"
name "Mixxx"
desc "Open-source DJ software"
homepage "https://www.mixxx.org/"

livecheck do
url "https://mixxx.org/download/"
regex(%r{href=.*?/snapshots/main/mixxx[._-]v?(.+)[._-]macos#{arch}\.dmg}i)
end

conflicts_with cask: "mixxx"

app "Mixxx.app"

zap trash: [
"~/Library/Application Scripts/org.mixxx.mixxx",
"~/Library/Containers/org.mixxx.mixxx",
"~/Music/Mixxx",
]
end
21 changes: 21 additions & 0 deletions Casks/m/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
cask "monal@beta" do
version "899"
sha256 "9b5c0a302b9482ce9606e9f4ba89039ac5424ed53dc0b40203acb3a661c62cff"

url "https://downloads.monal-im.org/monal-im/beta/macOS/Monal-#{version}.zip"
name "Monal"
desc "Tool to securely connect to chat servers"
homepage "https://monal-im.org/"

livecheck do
url "https://downloads.monal-im.org/monal-im/beta/macOS/latest.txt"
regex(/^(\d+)$/i)
end

conflicts_with cask: "monal"
depends_on macos: ">= :big_sur"

app "Monal.app"

zap trash: "~/Library/Group Containers/group.monal"
end
26 changes: 26 additions & 0 deletions Casks/m/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
cask "mongodb-compass@beta" do
version "1.42.6-beta.4"
sha256 "e0a04054fd925cb3516e7d93d25d8eefd9e4ad6e2d0090e7447ff5c939b117b9"

url "https://downloads.mongodb.com/compass/beta/mongodb-compass-#{version}-darwin-x64.dmg"
name "MongoDB Compass"
desc "GUI for MongoDB"
homepage "https://www.mongodb.com/try/download/compass"

livecheck do
url "https://github.com/mongodb-js/compass/releases?q=prerelease%3Atrue&expanded=true"
regex(%r{href=["']?[^"' >]*?/tag/\D*?(\d+(?:\.\d+)+-beta\.\d)[^"' >]*?["' >]}i)
strategy :page_match
end

depends_on macos: ">= :catalina"

app "MongoDB Compass Beta.app"

zap trash: [
"~/.mongodb",
"~/Library/Application Support/MongoDB Compass Beta",
"~/Library/Preferences/com.mongodb.compass.beta.plist",
"~/Library/Saved Application State/com.mongodb.compass.beta.savedState",
]
end
41 changes: 41 additions & 0 deletions Casks/m/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
cask "mullvadvpn@beta" do
version "2024.2-beta1"
sha256 "4770625008315c85a5c231ff38ec005e4133329bda0cb25544337f7887656f2b"

url "https://github.com/mullvad/mullvadvpn-app/releases/download/#{version}/MullvadVPN-#{version}.pkg",
verified: "github.com/mullvad/mullvadvpn-app/"
name "Mullvad VPN"
desc "VPN client"
homepage "https://mullvad.net/"

livecheck do
url :url
regex(/^v?(\d+(?:\.\d+)+[._-]beta\d*)$/i)
strategy :github_releases do |json, regex|
json.map do |release|
next if release["draft"]

match = release["tag_name"]&.match(regex)
next if match.blank?

match[1]
end
end
end

conflicts_with cask: "mullvadvpn"

pkg "MullvadVPN-#{version}.pkg"

uninstall launchctl: "net.mullvad.daemon",
quit: "net.mullvad.vpn",
pkgutil: "net.mullvad.vpn"

zap trash: [
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/net.mullvad.vpn.sfl*",
"~/Library/Application Support/Mullvad VPN",
"~/Library/Logs/Mullvad VPN",
"~/Library/Preferences/net.mullvad.vpn.helper.plist",
"~/Library/Preferences/net.mullvad.vpn.plist",
]
end
26 changes: 26 additions & 0 deletions Casks/n/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
cask "navicat-premium@15" do
version "15.0.36"
sha256 :no_check

url "https://download.navicat.com/download/navicat#{version.major_minor.no_dots}_premium_en.dmg"
name "Navicat Premium 15"
desc "Database administration and development tool"
homepage "https://www.navicat.com/products/navicat-premium"

livecheck do
url "https://www.navicat.com/en/products/navicat-premium-release-note#M"
regex(/Navicat\sPremium\s\(macOS\)\sversion\s(15\.\d+(?:\.\d+)+)/i)
end

conflicts_with cask: "navicat-premium"
depends_on macos: ">= :mojave"

app "Navicat Premium.app"

zap trash: [
"~/Library/Application Support/PremiumSoft CyberTech/Navicat CC/Navicat Premium",
"~/Library/Caches/com.apple.helpd/Generated/Navicat Help*#{version}",
"~/Library/Preferences/com.prect.NavicatPremium#{version.major}.plist",
"~/Library/Saved Application State/com.prect.NavicatPremium#{version.major}.savedState",
]
end
31 changes: 31 additions & 0 deletions Casks/n/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
cask "netnewswire@beta" do
version "6.1.5b1"
sha256 "17a458daca9c3a9a5d88f05e94ee87cd34ab9fde7853dfb2e3f667476c556d5b"

url "https://github.com/brentsimmons/NetNewsWire/releases/download/mac-#{version}/NetNewsWire#{version}.zip",
verified: "github.com/brentsimmons/NetNewsWire/"
name "NetNewsWire"
desc "Free and open-source RSS reader"
homepage "https://ranchero.com/netnewswire/"

livecheck do
url :url
regex(/^mac-(\d+(?:\.\d+)*b\d+)$/i)
end

auto_updates true
conflicts_with cask: "netnewswire"
depends_on macos: ">= :big_sur"

app "NetNewsWire.app"

zap trash: [
"~/Library/Application Scripts/com.ranchero.NetNewsWire-Evergreen.Subscribe-to-Feed",
"~/Library/Application Support/NetNewsWire",
"~/Library/Caches/com.ranchero.NetNewsWire-Evergreen",
"~/Library/Containers/com.ranchero.NetNewsWire-Evergreen.Subscribe-to-Feed",
"~/Library/Preferences/com.ranchero.NetNewsWire-Evergreen.plist",
"~/Library/Saved Application State/com.ranchero.NetNewsWire-Evergreen.savedState",
"~/Library/WebKit/com.ranchero.NetNewsWire-Evergreen",
]
end
46 changes: 46 additions & 0 deletions Casks/o/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
cask "obs@beta" do
arch arm: "Apple", intel: "Intel"
livecheck_folder = on_arch_conditional arm: "arm64", intel: "x86_64"

version "30.1.0-rc1"
sha256 arm: "2a749d1308029a039e4cad6223076d90fa30a86c11e1e1271ac82ae7596624fe",
intel: "15af4c79230a18f7e48cb1c2182b97b13b09420130cccf805814cbe77c009c41"

url "https://cdn-fastly.obsproject.com/downloads/OBS-Studio-#{version}-macOS-#{arch}.dmg"
name "OBS"
desc "Open-source software for live streaming and screen recording"
homepage "https://obsproject.com/forum/list/test-builds.20/"

livecheck do
url "https://obsproject.com/osx_update/updates_#{livecheck_folder}_v2.xml"
regex(/obs[._-]studio[._-](\d+(?:[.-]\d+)+(?:(?:-beta)|(?:-rc))\d+)[._-]macos/i)
strategy :sparkle do |items, regex|
items.find { |item| item.channel == "beta" }&.url&.scan(regex)&.flatten
end
end

auto_updates true
conflicts_with cask: "obs"
depends_on macos: ">= :big_sur"

app "OBS.app"
# shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
shimscript = "#{staged_path}/obs.wrapper.sh"
binary shimscript, target: "obs"

preflight do
File.write shimscript, <<~EOS
#!/bin/bash
exec '#{appdir}/OBS.app/Contents/MacOS/OBS' "$@"
EOS
end

uninstall delete: "/Library/CoreMediaIO/Plug-Ins/DAL/obs-mac-virtualcam.plugin"

zap trash: [
"~/Library/Application Support/obs-studio",
"~/Library/HTTPStorages/com.obsproject.obs-studio",
"~/Library/Preferences/com.obsproject.obs-studio.plist",
"~/Library/Saved Application State/com.obsproject.obs-studio.savedState",
]
end
25 changes: 25 additions & 0 deletions Casks/o/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
cask "omegat@latest" do
version "5.7.1"
sha256 "557a4f21533e8f73a4463f4b195c2d81996fbc25e576e447add9f5ce68661949"

url "https://downloads.sourceforge.net/omegat/OmegaT%20-%20Latest/OmegaT%20#{version}/OmegaT_#{version}_Beta_Mac_Notarized.zip",
verified: "downloads.sourceforge.net/omegat/"
name "OmegaT 5"
desc "Translation memory tool"
homepage "https://omegat.org/"

livecheck do
url "https://sourceforge.net/projects/omegat/rss?path=/OmegaT%20-%20Latest"
end

conflicts_with cask: "omegat"

app "OmegaT_#{version}_Beta_Mac_Notarized//OmegaT.app"

zap trash: [
"~/Library/Application Support/OmegaT",
"~/Library/Caches/OmegaT",
"~/Library/Preferences/OmegaT",
"~/Library/Saved Application State/org.omegat.OmegaT.savedState",
]
end
Loading

0 comments on commit 50cee6e

Please sign in to comment.