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#172439 from Homebrew/migrate-casks-b
various casks (b-d): migrate
- Loading branch information
Showing
18 changed files
with
586 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,36 @@ | ||
cask "bbedit@14" do | ||
version "14.6.9" | ||
sha256 "8707901de03589c4b8cc3d0c35432c9c0c007ee30e53a654b997c5b3f9d4ff24" | ||
|
||
url "https://s3.amazonaws.com/BBSW-download/BBEdit_#{version}.dmg", | ||
verified: "s3.amazonaws.com/BBSW-download/" | ||
name "BBEdit" | ||
desc "Text, code, and markup editor" | ||
homepage "https://www.barebones.com/products/bbedit/" | ||
|
||
livecheck do | ||
url "https://versioncheck.barebones.com/BBEdit.xml" | ||
regex(/BBEdit[._-]v?(#{version.major}(?:\.\d+)+)\.dmg/i) | ||
end | ||
|
||
auto_updates true | ||
conflicts_with cask: "bbedit" | ||
depends_on macos: ">= :catalina" | ||
|
||
app "BBEdit.app" | ||
binary "#{appdir}/BBEdit.app/Contents/Helpers/bbedit_tool", target: "bbedit" | ||
binary "#{appdir}/BBEdit.app/Contents/Helpers/bbdiff" | ||
binary "#{appdir}/BBEdit.app/Contents/Helpers/bbfind" | ||
binary "#{appdir}/BBEdit.app/Contents/Helpers/bbresults" | ||
manpage "#{appdir}/BBEdit.app/Contents/Resources/bbedit.1" | ||
manpage "#{appdir}/BBEdit.app/Contents/Resources/bbdiff.1" | ||
manpage "#{appdir}/BBEdit.app/Contents/Resources/bbfind.1" | ||
manpage "#{appdir}/BBEdit.app/Contents/Resources/bbresults.1" | ||
|
||
zap trash: [ | ||
"~/Library/Application Support/BBEdit", | ||
"~/Library/BBEdit", | ||
"~/Library/Caches/com.barebones.bbedit", | ||
"~/Library/Preferences/com.barebones.bbedit.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,30 @@ | ||
cask "beyond-compare@beta" do | ||
version "5.0.0.29328" | ||
sha256 "50875f9fbf2fecb40303e8e41cfa21317a8ca645dbbfeb06d58c5096fd04af71" | ||
|
||
url "https://www.scootersoftware.com/files/BCompareOSX-#{version}.zip" | ||
name "Beyond Compare" | ||
desc "Compare files and folders" | ||
homepage "https://www.scootersoftware.com/" | ||
|
||
livecheck do | ||
url "https://www.scootersoftware.com/beta/download" | ||
regex(/BCompareOSX[_.-]v?(\d+(?:\.\d+)+)\.zip/i) | ||
end | ||
|
||
auto_updates true | ||
conflicts_with cask: "beyond-compare" | ||
|
||
app "Beyond Compare.app" | ||
binary "#{appdir}/Beyond Compare.app/Contents/MacOS/bcomp" | ||
|
||
zap trash: [ | ||
"~/Library/Application Support/Beyond Compare*", | ||
"~/Library/Caches/com.apple.helpd/Generated/Beyond Compare Help*", | ||
"~/Library/Caches/com.apple.helpd/Generated/com.ScooterSoftware.BeyondCompare.help*", | ||
"~/Library/Caches/com.ScooterSoftware.BeyondCompare", | ||
"~/Library/Containers/com.ScooterSoftware.BeyondCompare.BCFinder", | ||
"~/Library/Preferences/com.ScooterSoftware.BeyondCompare.plist", | ||
"~/Library/Saved Application State/com.ScooterSoftware.BeyondCompare.savedState", | ||
] | ||
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,68 @@ | ||
cask "blender@lts" do | ||
arch arm: "arm64", intel: "x64" | ||
|
||
version "3.6.11" | ||
sha256 arm: "b15e5435412be4fccb8b78572b397329eeb852b9db906d02989f362ee53a1be8", | ||
intel: "4ad5dfdec08fbc56738db7688e1575fb5b95162e31c77b6f62752c26b52f6fcb" | ||
|
||
url "https://download.blender.org/release/Blender#{version.major_minor}/blender-#{version}-macos-#{arch}.dmg" | ||
name "Blender" | ||
desc "Free and open-source 3D creation suite" | ||
homepage "https://www.blender.org/" | ||
|
||
# NOTE: The download page contents may change once the newest version is no | ||
# longer an LTS version (i.e. 3.4 instead of 3.3 LTS) requiring further | ||
# changes to this setup. | ||
livecheck do | ||
url "https://www.blender.org/download/" | ||
regex(%r{href=.*?/blender[._-]v?(\d+(?:\.\d+)+)-macos-#{arch}\.dmg}i) | ||
strategy :page_match do |page, regex| | ||
# Match major/minor versions from LTS "download" page URLs | ||
lts_page = Homebrew::Livecheck::Strategy.page_content("https://www.blender.org/download/lts/") | ||
next if lts_page[:content].blank? | ||
|
||
lts_versions = | ||
lts_page[:content].scan(%r{href=["'].*/download/(?:lts|releases)/(\d+(?:[.-]\d+)+)/["' >]}i) | ||
.flatten | ||
.uniq | ||
.map { |v| Version.new(v) } | ||
next if lts_versions.blank? | ||
|
||
version_page = Homebrew::Livecheck::Strategy.page_content("https://www.blender.org/download/lts/#{lts_versions.max}/") | ||
next [] if version_page[:content].blank? | ||
|
||
# If the version page has a download link, return it as the livecheck version | ||
matched_versions = version_page[:content].scan(regex).flatten | ||
next matched_versions if matched_versions.present? | ||
|
||
# If the version page doesn't have a download link, check the download page | ||
# Ensure we only match LTS versions on the download page | ||
page.scan(regex) | ||
.flatten | ||
.select { |v| lts_versions.include?(Version.new(v).major_minor) } | ||
end | ||
end | ||
|
||
conflicts_with cask: "blender" | ||
depends_on macos: ">= :high_sierra" | ||
|
||
app "Blender.app" | ||
# shim script (https://github.com/Homebrew/homebrew-cask/issues/18809) | ||
shimscript = "#{staged_path}/blender.wrapper.sh" | ||
binary shimscript, target: "blender" | ||
|
||
preflight do | ||
# make __pycache__ directories writable, otherwise uninstall fails | ||
FileUtils.chmod "u+w", Dir.glob("#{staged_path}/*.app/**/__pycache__") | ||
|
||
File.write shimscript, <<~EOS | ||
#!/bin/bash | ||
'#{appdir}/Blender.app/Contents/MacOS/Blender' "$@" | ||
EOS | ||
end | ||
|
||
zap trash: [ | ||
"~/Library/Application Support/Blender", | ||
"~/Library/Saved Application State/org.blenderfoundation.blender.savedState", | ||
] | ||
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,27 @@ | ||
cask "buckets@beta" do | ||
arch arm: "arm64", intel: "amd64" | ||
|
||
version "0.74.0" | ||
sha256 arm: "a2625d31d94c70702971d97a1146c7f7dc17474a676083150ba5fb234fa42633", | ||
intel: "f294868843305ca93eeef8faa8e59c22b755cd0d7de42aab7b9a9898eb894e24" | ||
|
||
url "https://github.com/buckets/desktop-beta/releases/download/v#{version}/Buckets-Beta-#{arch}-#{version}.dmg", | ||
verified: "github.com/buckets/desktop-beta/" | ||
name "Buckets Beta" | ||
desc "Budgeting tool" | ||
homepage "https://www.budgetwithbuckets.com/" | ||
|
||
livecheck do | ||
url :url | ||
strategy :github_latest | ||
end | ||
|
||
depends_on macos: ">= :high_sierra" | ||
|
||
app "Buckets Beta.app" | ||
|
||
zap trash: [ | ||
"~/Library/Application Support/Buckets Beta", | ||
"~/Library/Preferences/com.onepartrain.buckets.desktopbeta.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,41 @@ | ||
cask "carbon-copy-cloner@5" do | ||
version "5.1.28.6213" | ||
sha256 "050ed65c493ff75bf415210de357ce552833c724e39c9d61043fd10151dd7a22" | ||
|
||
url "https://bombich.scdn1.secure.raxcdn.com/software/files/ccc-#{version}.zip", | ||
verified: "bombich.scdn1.secure.raxcdn.com/software/files/" | ||
name "Carbon Copy Cloner 5" | ||
desc "Hard disk backup and cloning utility" | ||
homepage "https://bombich.com/" | ||
|
||
livecheck do | ||
url "https://bombich.com/software/updates/ccc.php?os_major=11&os_minor=6&os_bugfix=0&ccc=6000&beta=0&locale=en" | ||
strategy :json do |json| | ||
version = json.dig("stable", "version") | ||
build = json.dig("stable", "build") | ||
next if version.blank? || build.blank? | ||
|
||
"#{version}.#{build}" | ||
end | ||
end | ||
|
||
auto_updates true | ||
conflicts_with cask: "carbon-copy-cloner" | ||
|
||
app "Carbon Copy Cloner.app" | ||
|
||
uninstall quit: [ | ||
"com.bombich.ccc", | ||
"com.bombich.cccuseragent", | ||
], | ||
login_item: "CCC User Agent" | ||
|
||
zap trash: [ | ||
"/Library/LaunchDaemons/com.bombich.ccchelper.plist", | ||
"~/Library/Application Support/com.bombich.ccc", | ||
"~/Library/Caches/com.bombich.ccc", | ||
"~/Library/Preferences/com.bombich.ccc.plist", | ||
"~/Library/Preferences/com.bombich.cccuseragent.plist", | ||
"~/Library/Saved Application State/com.bombich.ccc.savedState", | ||
] | ||
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,32 @@ | ||
cask "dash@6" do | ||
version "6.4.3" | ||
sha256 "647c1bf186d7a0c598390a64e2ec504f37c4475e02ca1f3c45164e29fa410283" | ||
|
||
url "https://kapeli.com/downloads/v#{version.major}/Dash.zip" | ||
name "Dash" | ||
desc "API documentation browser and code snippet manager" | ||
homepage "https://kapeli.com/dash" | ||
|
||
livecheck do | ||
url "https://kapeli.com/Dash6.xml" | ||
strategy :sparkle, &:short_version | ||
end | ||
|
||
auto_updates true | ||
conflicts_with cask: "dash" | ||
depends_on macos: ">= :high_sierra" | ||
|
||
app "Dash.app" | ||
|
||
zap trash: [ | ||
"~/Library/Application Support/com.kapeli.dashdoc", | ||
"~/Library/Application Support/Dash", | ||
"~/Library/Caches/com.kapeli.dashdoc", | ||
"~/Library/Cookies/com.kapeli.dashdoc.binarycookies", | ||
"~/Library/HTTPStorages/com.kapeli.dashdoc.binarycookies", | ||
"~/Library/Logs/Dash", | ||
"~/Library/Preferences/com.kapeli.dashdoc.plist", | ||
"~/Library/Saved Application State/com.kapeli.dashdoc.savedState", | ||
"~/Library/WebKit/com.kapeli.dashdoc", | ||
] | ||
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,16 @@ | ||
cask "db-browser-for-sqlcipher@nightly" do | ||
version :latest | ||
sha256 :no_check | ||
|
||
url "https://nightlies.sqlitebrowser.org/latest/DB.Browser.for.SQLCipher-universal.dmg" | ||
name "DB Browser for SQLCipher Nightly" | ||
desc "Database browser for SQLCipher" | ||
homepage "https://sqlitebrowser.org/" | ||
|
||
app "DB Browser for SQLCipher Nightly.app" | ||
|
||
zap trash: [ | ||
"~/Library/Preferences/com.sqlitebrowser.sqlitebrowser.plist", | ||
"~/Library/Saved Application State/net.sourceforge.sqlitebrowser.savedState", | ||
] | ||
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,16 @@ | ||
cask "db-browser-for-sqlite@nightly" do | ||
version :latest | ||
sha256 :no_check | ||
|
||
url "https://nightlies.sqlitebrowser.org/latest/DB.Browser.for.SQLite-universal.dmg" | ||
name "DB Browser for SQLite Nightly" | ||
desc "Database browser for SQLite" | ||
homepage "https://sqlitebrowser.org/" | ||
|
||
app "DB Browser for SQLite Nightly.app" | ||
|
||
zap trash: [ | ||
"~/Library/Preferences/com.sqlitebrowser.sqlitebrowser.plist", | ||
"~/Library/Saved Application State/net.sourceforge.sqlitebrowser.savedState", | ||
] | ||
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,44 @@ | ||
cask "defold@alpha" do | ||
arch arm: "arm64", intel: "x86_64" | ||
|
||
version "1.8.1" | ||
sha256 :no_check # required as upstream package is updated in-place | ||
|
||
url "https://github.com/defold/defold/releases/download/#{version}-alpha/Defold-#{arch}-macos.dmg", | ||
verified: "github.com/defold/defold/" | ||
name "Defold" | ||
desc "Game engine for development of desktop, mobile and web games" | ||
homepage "https://defold.com/" | ||
|
||
# The `GithubReleases` strategy omits releases marked as pre-release, so we | ||
# have to use a `strategy` block to work with unstable versions. | ||
livecheck do | ||
url :url | ||
regex(/^v?(\d+(?:\.\d+)+)[._-]alpha$/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 | ||
|
||
auto_updates true | ||
conflicts_with cask: [ | ||
"defold", | ||
"defold-beta", | ||
] | ||
|
||
app "Defold.app" | ||
|
||
zap trash: [ | ||
"~/Library/Application Support/Defold", | ||
"~/Library/Caches/com.defold.editor", | ||
"~/Library/Preferences/com.defold.editor.plist", | ||
"~/Library/Saved Application State/com.defold.editor.savedState", | ||
] | ||
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,44 @@ | ||
cask "defold@beta" do | ||
arch arm: "arm64", intel: "x86_64" | ||
|
||
version "1.8.0" | ||
sha256 :no_check # required as upstream package is updated in-place | ||
|
||
url "https://github.com/defold/defold/releases/download/#{version}-beta/Defold-#{arch}-macos.dmg", | ||
verified: "github.com/defold/defold/" | ||
name "Defold" | ||
desc "Game engine for development of desktop, mobile and web games" | ||
homepage "https://defold.com/" | ||
|
||
# The `GithubReleases` strategy omits releases marked as pre-release, so we | ||
# have to use a `strategy` block to work with unstable versions. | ||
livecheck do | ||
url :url | ||
regex(/^v?(\d+(?:\.\d+)+)[._-]beta$/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 | ||
|
||
auto_updates true | ||
conflicts_with cask: [ | ||
"defold", | ||
"defold-alpha", | ||
] | ||
|
||
app "Defold.app" | ||
|
||
zap trash: [ | ||
"~/Library/Application Support/Defold", | ||
"~/Library/Caches/com.defold.editor", | ||
"~/Library/Preferences/com.defold.editor.plist", | ||
"~/Library/Saved Application State/com.defold.editor.savedState", | ||
] | ||
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,30 @@ | ||
cask "discord@canary" do | ||
version "0.0.487" | ||
sha256 "8a6cda6825a3958949a81da84b2b4cfd1560e7b1fa961bcd9c8fdb7e2d93e3ff" | ||
|
||
url "https://dl-canary.discordapp.net/apps/osx/#{version}/DiscordCanary.dmg", | ||
verified: "dl-canary.discordapp.net/" | ||
name "Discord Canary" | ||
desc "Voice and text chat software" | ||
homepage "https://canary.discord.com/" | ||
|
||
livecheck do | ||
url "https://discord.com/api/download/canary?platform=osx" | ||
strategy :header_match | ||
end | ||
|
||
auto_updates true | ||
depends_on macos: ">= :catalina" | ||
|
||
app "Discord Canary.app" | ||
|
||
zap trash: [ | ||
"~/Library/Application Support/discordcanary", | ||
"~/Library/Caches/com.hnc.DiscordCanary", | ||
"~/Library/Caches/com.hnc.DiscordCanary.ShipIt", | ||
"~/Library/Cookies/com.hnc.DiscordCanary.binarycookies", | ||
"~/Library/Preferences/com.hnc.DiscordCanary.helper.plist", | ||
"~/Library/Preferences/com.hnc.DiscordCanary.plist", | ||
"~/Library/Saved Application State/com.hnc.DiscordCanary.savedState", | ||
] | ||
end |
Oops, something went wrong.