Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

various casks (e-f): migrate #172475

Merged
merged 10 commits into from
Apr 29, 2024
25 changes: 25 additions & 0 deletions Casks/e/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
cask "element@nightly" do
version :latest
sha256 :no_check

url "https://packages.riot.im/nightly/install/macos/Element%20Nightly.dmg",
verified: "packages.riot.im/nightly/install/macos/"
name "Element Nightly"
desc "Matrix collaboration client"
homepage "https://element.io/get-started"

depends_on macos: ">= :catalina"

app "Element Nightly.app"

zap trash: [
"~/Library/Application Support/Element",
"~/Library/Application Support/Riot",
"~/Library/Caches/im.riot.app",
"~/Library/Caches/im.riot.app.ShipIt",
"~/Library/Logs/Riot",
"~/Library/Preferences/im.riot.app.helper.plist",
"~/Library/Preferences/im.riot.app.plist",
"~/Library/Saved Application State/im.riot.app.savedState",
]
end
26 changes: 26 additions & 0 deletions Casks/e/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
cask "elephas@beta" do
version "9.13"
sha256 :no_check

url "https://assets.elephas.app/Elephas_beta.dmg"
name "Elephas"
desc "Personal AI Writing Assistant"
homepage "https://elephas.app/"

livecheck do
url :url
strategy :extract_plist
end

conflicts_with cask: "elephas"
depends_on macos: ">= :monterey"

app "Elephas.app"

zap trash: [
"~/Library/Application Support/Elephas",
"~/Library/Caches/com.kamban.elephas",
"~/Library/HTTPStorages/com.kamban.elephas",
"~/Library/Preferences/com.kamban.elephas.plist",
]
end
46 changes: 46 additions & 0 deletions Casks/e/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
cask "emacs@nightly" do
arch arm: "arm64-11", intel: "x86_64-10_11"

version "2024-04-20_00-14-48,42776dc5b7702cec2feb787fbf770d91623b9818"
sha256 "476c711b8e054e9cb035f2946abfaad0c0c31a74b3467972a9af7111f283b086"

url "https://emacsformacosx.com/emacs-builds/Emacs-#{version.csv.first}-#{version.csv.second}-universal.dmg"
name "Emacs"
desc "GNU Emacs text editor"
homepage "https://emacsformacosx.com/"

livecheck do
url "https://emacsformacosx.com/atom/daily"
regex(/href=.*?Emacs[._-](\d+-\d+-\d+_\d+-\d+-\d+)[._-]([a-f0-9]+)[._-]universal\.dmg/i)
strategy :page_match do |page|
match = page.match(regex)
next if match.blank?

"#{match[1]},#{match[2]}"
end
end

conflicts_with cask: [
"emacs",
"emacs-pretest",
],
formula: "emacs"

app "Emacs.app"
binary "#{appdir}/Emacs.app/Contents/MacOS/Emacs", target: "emacs"
binary "#{appdir}/Emacs.app/Contents/MacOS/bin-#{arch}/ctags"
binary "#{appdir}/Emacs.app/Contents/MacOS/bin-#{arch}/ebrowse"
binary "#{appdir}/Emacs.app/Contents/MacOS/bin-#{arch}/emacsclient"
binary "#{appdir}/Emacs.app/Contents/MacOS/bin-#{arch}/etags"
manpage "#{appdir}/Emacs.app/Contents/Resources/man/man1/ctags.1.gz"
manpage "#{appdir}/Emacs.app/Contents/Resources/man/man1/ebrowse.1.gz"
manpage "#{appdir}/Emacs.app/Contents/Resources/man/man1/emacs.1.gz"
manpage "#{appdir}/Emacs.app/Contents/Resources/man/man1/emacsclient.1.gz"
manpage "#{appdir}/Emacs.app/Contents/Resources/man/man1/etags.1.gz"

zap trash: [
"~/Library/Caches/org.gnu.Emacs",
"~/Library/Preferences/org.gnu.Emacs.plist",
"~/Library/Saved Application State/org.gnu.Emacs.savedState",
]
end
40 changes: 40 additions & 0 deletions Casks/e/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
cask "emacs@pretest" do
arch arm: "arm64-11", intel: "x86_64-10_11"

version "29.1.90"
sha256 "e3a8fa0e6289052003ef8c729abe7bee5fbd6bd8de60a638940c5d3971934bc9"

url "https://emacsformacosx.com/emacs-builds/Emacs-pretest-#{version}-universal.dmg"
name "Emacs"
desc "Text editor"
homepage "https://emacsformacosx.com/"

livecheck do
url "https://emacsformacosx.com/atom/pretest"
regex(/Emacs[._-]pretest[._-]v?(\d+(?:\.\d+)+)[._-]universal.dmg/i)
end

conflicts_with cask: [
"emacs",
"emacs-nightly",
],
formula: "emacs"

app "Emacs.app"
binary "#{appdir}/Emacs.app/Contents/MacOS/Emacs", target: "emacs"
binary "#{appdir}/Emacs.app/Contents/MacOS/bin-#{arch}/ctags"
binary "#{appdir}/Emacs.app/Contents/MacOS/bin-#{arch}/ebrowse"
binary "#{appdir}/Emacs.app/Contents/MacOS/bin-#{arch}/emacsclient"
binary "#{appdir}/Emacs.app/Contents/MacOS/bin-#{arch}/etags"
manpage "#{appdir}/Emacs.app/Contents/Resources/man/man1/ctags.1.gz"
manpage "#{appdir}/Emacs.app/Contents/Resources/man/man1/ebrowse.1.gz"
manpage "#{appdir}/Emacs.app/Contents/Resources/man/man1/emacs.1.gz"
manpage "#{appdir}/Emacs.app/Contents/Resources/man/man1/emacsclient.1.gz"
manpage "#{appdir}/Emacs.app/Contents/Resources/man/man1/etags.1.gz"

zap trash: [
"~/Library/Caches/org.gnu.Emacs",
"~/Library/Preferences/org.gnu.Emacs.plist",
"~/Library/Saved Application State/org.gnu.Emacs.savedState",
]
end
104 changes: 104 additions & 0 deletions Casks/f/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
cask "firefox@beta" do
version :latest
sha256 :no_check

language "cs" do
"cs"
end
language "de" do
"de"
end
language "en-CA" do
"en-CA"
end
language "en-GB" do
"en-GB"
end
language "en", default: true do
"en-US"
end
language "es-AR" do
"es-AR"
end
language "es-CL" do
"es-CL"
end
language "es-ES" do
"es-ES"
end
language "fi" do
"fi"
end
language "fr" do
"fr"
end
language "gl" do
"gl"
end
language "in" do
"hi-IN"
end
language "it" do
"it"
end
language "ja" do
"ja-JP-mac"
end
language "nl" do
"nl"
end
language "pl" do
"pl"
end
language "pt-BR" do
"pt-BR"
end
language "pt" do
"pt-PT"
end
language "ru" do
"ru"
end
language "uk" do
"uk"
end
language "zh-TW" do
"zh-TW"
end
language "zh" do
"zh-CN"
end

url "https://download.mozilla.org/?product=firefox-beta-latest-ssl&os=osx&lang=#{language}"
name "Mozilla Firefox"
desc "Web browser"
homepage "https://www.mozilla.org/firefox/channel/desktop/#beta"

conflicts_with cask: [
"firefox",
"firefox-cn",
"firefox-esr",
]
depends_on macos: ">= :catalina"

app "Firefox.app"

zap trash: [
"/Library/Logs/DiagnosticReports/firefox_*",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.mozilla.firefox.sfl*",
"~/Library/Application Support/CrashReporter/firefox_*",
"~/Library/Application Support/Firefox",
"~/Library/Caches/Firefox",
"~/Library/Caches/Mozilla/updates/Applications/Firefox",
"~/Library/Caches/org.mozilla.firefox",
"~/Library/Preferences/org.mozilla.firefox.plist",
"~/Library/Saved Application State/org.mozilla.firefox.savedState",
"~/Library/WebKit/org.mozilla.firefox",
],
rmdir: [
"~/Library/Application Support/Mozilla", # May also contain non-Firefox data
"~/Library/Caches/Mozilla",
"~/Library/Caches/Mozilla/updates",
"~/Library/Caches/Mozilla/updates/Applications",
]
end
48 changes: 48 additions & 0 deletions Casks/f/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
cask "firefox@cn" do
version "116.0"
sha256 :no_check # patch versions use the same URL

url "https://download-ssl.firefox.com.cn/releases/firefox/#{version}/zh-CN/Firefox-latest.dmg"
name "firefox-cn"
desc "Chinese version of Firefox"
homepage "https://www.firefox.com.cn/"

livecheck do
url "https://download-redirect.firefox.com.cn/?product=firefox-latest-ssl&os=osx"
strategy :header_match
end

auto_updates true
conflicts_with cask: %w[
firefox
firefox-beta
firefox-developer-edition
firefox-esr
]
depends_on macos: ">= :catalina"

app "Firefox.app"

uninstall quit: "org.mozilla.firefox"

zap trash: [
"/Library/Logs/DiagnosticReports/firefox_*",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.mozilla.firefox.sfl*",
"~/Library/Application Support/CrashReporter/firefox_*",
"~/Library/Application Support/Firefox",
"~/Library/Caches/Firefox",
"~/Library/Caches/Mozilla/updates/Applications/Firefox",
"~/Library/Caches/org.mozilla.crashreporter",
"~/Library/Caches/org.mozilla.firefox",
"~/Library/Preferences/org.mozilla.crashreporter.plist",
"~/Library/Preferences/org.mozilla.firefox.plist",
"~/Library/Saved Application State/org.mozilla.firefox.savedState",
"~/Library/WebKit/org.mozilla.firefox",
],
rmdir: [
"~/Library/Application Support/Mozilla", # May also contain non-Firefox data
"~/Library/Caches/Mozilla",
"~/Library/Caches/Mozilla/updates",
"~/Library/Caches/Mozilla/updates/Applications",
]
end
84 changes: 84 additions & 0 deletions Casks/f/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
cask "firefox@developer-edition" do
version :latest
sha256 :no_check

language "ca" do
"ca"
end
language "cs" do
"cs"
end
language "de" do
"de"
end
language "en-CA" do
"en-CA"
end
language "en-GB" do
"en-GB"
end
language "en", default: true do
"en-US"
end
language "es" do
"es-ES"
end
language "fr" do
"fr"
end
language "it" do
"it"
end
language "nl" do
"nl"
end
language "ja" do
"ja-JP-mac"
end
language "pt-BR" do
"pt-BR"
end
language "ko" do
"ko"
end
language "ru" do
"ru"
end
language "uk" do
"uk"
end
language "zh-TW" do
"zh-TW"
end
language "zh" do
"zh-CN"
end

url "https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=osx&lang=#{language}"
name "Mozilla Firefox Developer Edition"
desc "Web browser"
homepage "https://www.mozilla.org/firefox/developer/"

depends_on macos: ">= :catalina"

app "Firefox Developer Edition.app"

zap trash: [
"/Library/Logs/DiagnosticReports/firefox_*",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.mozilla.firefox.sfl*",
"~/Library/Application Support/CrashReporter/firefox_*",
"~/Library/Application Support/Firefox",
"~/Library/Caches/Firefox",
"~/Library/Caches/Mozilla/updates/Applications/Firefox",
"~/Library/Caches/org.mozilla.firefox",
"~/Library/Preferences/org.mozilla.firefox.plist",
"~/Library/Saved Application State/org.mozilla.firefox.savedState",
"~/Library/WebKit/org.mozilla.firefox",
],
rmdir: [
"~/Library/Application Support/Mozilla", # May also contain non-Firefox data
"~/Library/Caches/Mozilla",
"~/Library/Caches/Mozilla/updates",
"~/Library/Caches/Mozilla/updates/Applications",
]
end
Loading