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 (a): migrate #172438

Merged
merged 9 commits into from
Apr 29, 2024
Merged
32 changes: 32 additions & 0 deletions Casks/a/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
cask "aerial@beta" do
version "3.2.7beta9"
sha256 "ab54eb9a072ed770ee0bebec73f4537958b7ba3dcad4fba761679146096c6031"

url "https://github.com/JohnCoates/Aerial/releases/download/v#{version}/Aerial.saver.zip",
verified: "github.com/JohnCoates/Aerial/"
name "Aerial Screensaver"
desc "Apple TV Aerial screensaver"
homepage "https://aerialscreensaver.github.io/"

livecheck do
url "https://github.com/JohnCoates/Aerial/releases?q=prerelease%3Atrue&expanded=true"
regex(/^v?(\d+(?:\.\d+)*beta\d+)$/i)
end

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

screen_saver "Aerial.saver"

zap trash: [
"~/Library/Application Support/Aerial",
"~/Library/Caches/Aerial",
"~/Library/Containers/com.apple.ScreenSaver.*/Data/Library/Application Support/Aerial",
"~/Library/Containers/com.apple.ScreenSaver.*/Data/Library/Application Support/Aerial",
"~/Library/Containers/com.apple.ScreenSaver.*/Data/Library/Caches/Aerial",
"~/Library/Containers/com.apple.ScreenSaver.*/Data/Library/Caches/Aerial/",
"~/Library/Containers/com.apple.ScreenSaver.*/Data/Library/Preferences/ByHost/com.JohnCoates.Aerial*.plist",
"~/Library/Preferences/ByHost/com.JohnCoates.Aerial*",
"~/Library/Screen Savers/Aerial.saver",
]
end
24 changes: 24 additions & 0 deletions Casks/a/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
cask "affinity-designer@1" do
version "1.10.8"
sha256 :no_check

url "https://store.serif.com/download/aa4dee/"
name "Affinity Designer"
desc "Professional graphic design software"
homepage "https://affinity.serif.com/en-us/designer/"

livecheck do
url :url
strategy :header_match
end

auto_updates true

app "Affinity Designer.app"

zap trash: [
"~/Library/Application Support/Affinity Designer",
"~/Library/Caches/com.seriflabs.affinitydesigner",
"~/Library/Saved Application State/com.seriflabs.affinitydesigner.savedState",
]
end
24 changes: 24 additions & 0 deletions Casks/a/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
cask "affinity-photo@1" do
version "1.10.8"
sha256 :no_check

url "https://store.serif.com/download/075b51/"
name "Affinity Photo"
desc "Professional image editing software"
homepage "https://affinity.serif.com/en-us/photo/"

livecheck do
url :url
strategy :header_match
end

auto_updates true

app "Affinity Photo.app"

zap trash: [
"~/Library/Application Support/Affinity Photo",
"~/Library/Caches/com.seriflabs.affinityphoto",
"~/Library/Saved Application State/com.seriflabs.affinityphoto.savedState",
]
end
24 changes: 24 additions & 0 deletions Casks/a/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
cask "affinity-publisher@1" do
version "1.10.8"
sha256 :no_check

url "https://store.serif.com/download/7ef252/"
name "Affinity Publisher"
desc "Professional desktop publishing software"
homepage "https://affinity.serif.com/en-us/publisher/"

livecheck do
url :url
strategy :header_match
end

auto_updates true

app "Affinity Publisher.app"

zap trash: [
"~/Library/Application Support/Affinity Publisher",
"~/Library/Caches/com.seriflabs.affinitypublisher",
"~/Library/Saved Application State/com.seriflabs.affinitypublisher.savedState",
]
end
35 changes: 35 additions & 0 deletions Casks/a/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
cask "alfred@4" do
version "4.8,1312"
sha256 "dd57e9374e21cd8f6f74628523fd3b0e59d6a40bb24920e5bdf90772d596c486"

url "https://cachefly.alfredapp.com/Alfred_#{version.csv.first}_#{version.csv.second}.dmg"
name "Alfred"
desc "Application launcher and productivity software"
homepage "https://www.alfredapp.com/"

livecheck do
url "https://www.alfredapp.com/app/update#{version.major}/general.xml"
strategy :xml do |xml|
build = xml.elements["//key[text()='build']"].next_element.text
version = xml.elements["//key[text()='version']"].next_element.text
next if build.blank? || version.blank?

"#{version},#{build}"
end
end

auto_updates true

app "Alfred #{version.major}.app"

uninstall quit: "com.runningwithcrayons.Alfred"

zap trash: [
"~/Library/Application Support/Alfred",
"~/Library/Caches/com.runningwithcrayons.Alfred",
"~/Library/Cookies/com.runningwithcrayons.Alfred.binarycookies",
"~/Library/Preferences/com.runningwithcrayons.Alfred-Preferences.plist",
"~/Library/Preferences/com.runningwithcrayons.Alfred.plist",
"~/Library/Saved Application State/com.runningwithcrayons.Alfred-Preferences.savedState",
]
end
39 changes: 39 additions & 0 deletions Casks/a/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
cask "android-studio-preview@beta" do
arch arm: "mac_arm", intel: "mac"

version "2023.3.1.17"
sha256 arm: "0eae05b4afbe0c9fd2f8c58168efa575b611c5b79b7c909621432c93c3b3b5fe",
intel: "c0a5ba9362acf53fe9daf1f50302d26a40cda0aee9d95a82709198ad1aa76ef5"

url "https://redirector.gvt1.com/edgedl/android/studio/install/#{version}/android-studio-#{version}-#{arch}.dmg",
verified: "redirector.gvt1.com/edgedl/android/studio/install/"
name "Android Studio Preview (Beta)"
desc "Tools for building Android applications"
homepage "https://developer.android.com/studio/preview/"

livecheck do
url :homepage
regex(%r{href=.*?/android[._-]studio[._-]v?(\d+(?:\.\d+)+)[._-]#{arch}\.dmg(.*\n*\s*.*)(Beta|RC)}i)
end

auto_updates true
depends_on macos: ">= :high_sierra"

app "Android Studio.app", target: "Android Studio Preview Beta.app"
binary "#{appdir}/Android Studio Preview Beta.app/Contents/MacOS/studio", target: "studio-beta"

zap trash: [
"~/.android",
"~/Library/Android/sdk",
"~/Library/Application Support/Google/AndroidStudioPreview#{version.major_minor}",
"~/Library/Caches/Google/AndroidStudioPreview#{version.major_minor}",
"~/Library/Logs/Google/AndroidStudioPreview#{version.major_minor}",
"~/Library/Preferences/com.android.Emulator.plist",
"~/Library/Preferences/com.google.android.studio-EAP.plist",
"~/Library/Saved Application State/com.google.android.studio-EAP.savedState",
],
rmdir: [
"~/AndroidStudioProjects",
"~/Library/Android",
]
end
39 changes: 39 additions & 0 deletions Casks/a/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
cask "android-studio-preview@canary" do
arch arm: "mac_arm", intel: "mac"

version "2024.1.1.4"
sha256 arm: "ba3d6bb2268ee3751694fc3bfd922e3cd0439f5d60063267e89007ef3d0405e4",
intel: "181f3c2bf117df8e2ffe65333919cc3ad55a2ed54ee4bd2e2fae1acee844d560"

url "https://redirector.gvt1.com/edgedl/android/studio/install/#{version}/android-studio-#{version}-#{arch}.dmg",
verified: "redirector.gvt1.com/edgedl/android/studio/install/"
name "Android Studio Preview (Canary)"
desc "Tools for building Android applications"
homepage "https://developer.android.com/studio/preview/"

livecheck do
url :homepage
regex(%r{href=.*?/android[._-]studio[._-]v?(\d+(?:\.\d+)+)[._-]#{arch}\.dmg}i)
end

auto_updates true
depends_on macos: ">= :high_sierra"

app "Android Studio Preview.app", target: "Android Studio Preview Canary.app"
binary "#{appdir}/Android Studio Preview Canary.app/Contents/MacOS/studio", target: "studio-canary"

zap trash: [
"~/.android",
"~/Library/Android/sdk",
"~/Library/Application Support/Google/AndroidStudioPreview#{version.major_minor}",
"~/Library/Caches/Google/AndroidStudioPreview#{version.major_minor}",
"~/Library/Logs/Google/AndroidStudioPreview#{version.major_minor}",
"~/Library/Preferences/com.android.Emulator.plist",
"~/Library/Preferences/com.google.android.studio-EAP.plist",
"~/Library/Saved Application State/com.google.android.studio-EAP.savedState",
],
rmdir: [
"~/AndroidStudioProjects",
"~/Library/Android",
]
end
19 changes: 19 additions & 0 deletions Casks/a/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
cask "arduino-ide@nightly" do
version :latest
sha256 :no_check

url "https://downloads.arduino.cc/arduino-ide/nightly/arduino-ide_nightly-latest_macOS_64bit.dmg"
name "Arduino IDE"
desc "Electronics prototyping platform"
homepage "https://www.arduino.cc/en/software"

conflicts_with cask: "arduino-ide"
depends_on macos: ">= :catalina"

app "Arduino IDE.app"

zap trash: [
"~/.arduinoIDE",
"~/Library/Application Support/arduino-ide",
]
end
30 changes: 30 additions & 0 deletions Casks/a/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
cask "azure-data-studio@insiders" do
arch arm: "-arm64"

version :latest
sha256 :no_check

url "https://azuredatastudio-update.azurewebsites.net/latest/darwin#{arch}/insider",
verified: "azuredatastudio-update.azurewebsites.net/latest/"
name "Azure Data Studio - Insiders"
desc "Data management tool that enables working with SQL Server"
homepage "https://docs.microsoft.com/en-us/sql/azure-data-studio/"

depends_on macos: ">= :high_sierra"

app "Azure Data Studio - Insiders.app"
binary "#{appdir}/Azure Data Studio - Insiders.app/Contents/Resources/app/bin/code",
target: "azuredatastudio-insiders"

zap trash: [
"~/.azuredatastudio-insiders",
"~/Library/Application Support/Azure Data Studio",
"~/Library/Application Support/azuredatastudio",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.azuredatastudio.oss.insiders.sfl*",
"~/Library/Caches/com.azuredatastudio.oss.insiders",
"~/Library/Caches/com.azuredatastudio.oss.insiders.ShipIt",
"~/Library/Preferences/com.azuredatastudio.oss.helper.plist",
"~/Library/Preferences/com.azuredatastudio.oss.insiders.plist",
"~/Library/Saved Application State/com.azuredatastudio.oss.insiders.savedState",
]
end
1 change: 1 addition & 0 deletions audit_exceptions/github_prerelease_allowlist.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"aerial@beta": "all",
"altdeploy": "all",
"bitbar": "all",
"cleartext": "all",
Expand Down