Skip to content

Commit

Permalink
Merge pull request #173158 from samford/2024-05-07-url-redirections
Browse files Browse the repository at this point in the history
Update livecheck/homepage to avoid redirections
  • Loading branch information
miccal committed May 8, 2024
2 parents 05542c5 + d774cbc commit cdc9e7e
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Casks/c/clip-studio-paint.rb
Expand Up @@ -8,7 +8,7 @@
homepage "https://www.clipstudio.net/en"

livecheck do
url "https://www.clipstudio.net/en/dl/release_note/v2"
url "https://www.clipstudio.net/en/dl/release_note/v2/"
regex(/Clip\s+Studio\s+Paint\s+(?:v|Ver\.?|Version)?\s*(\d+(?:\.\d+)+)/i)
end

Expand Down
2 changes: 1 addition & 1 deletion Casks/d/dropbox@beta.rb
Expand Up @@ -9,7 +9,7 @@
verified: "dropbox.com/"
name "Dropbox"
desc "Client for the Dropbox cloud storage service"
homepage "https://www.dropboxforum.com/t5/Desktop-client-builds/bd-p/101003016"
homepage "https://www.dropboxforum.com/t5/Dropbox-desktop-client-builds/bd-p/101003016"

livecheck do
url :homepage
Expand Down
2 changes: 1 addition & 1 deletion Casks/g/genymotion.rb
Expand Up @@ -12,7 +12,7 @@
sha256 "beb88db7cfed503ed95ff68377fac0848256c300caf78b4be7b8b8c62ade80eb"

livecheck do
url "https://www.genymotion.com/download/"
url "https://www.genymotion.com/product-desktop/download/"
regex(/href=.*?Genymotion[._-]v?(\d+(?:\.\d+)+)\.(?:dmg|pkg)/i)
end
end
Expand Down
2 changes: 1 addition & 1 deletion Casks/m/monotype.rb
Expand Up @@ -8,7 +8,7 @@
homepage "https://support.monotype.com/en/articles/7860542-monotype-desktop-app"

livecheck do
url "https://support.monotype.com/en/articles/7859464-release-notes"
url "https://support.monotype.com/en/articles/8617063-latest-release-notes"
regex(/<p>Version\s*v?(\d+(?:\.\d+)+)[ "<]/i)
end

Expand Down
2 changes: 1 addition & 1 deletion Casks/n/notesnook.rb
Expand Up @@ -12,7 +12,7 @@
homepage "https://notesnook.com/"

livecheck do
url "https://notesnook.com/releases/darwin/latest-mac.yml"
url "https://notesnook.com/api/v1/releases/darwin/latest/latest-mac.yml"
strategy :electron_builder
end

Expand Down
2 changes: 1 addition & 1 deletion Casks/q/qgis@ltr.rb
Expand Up @@ -8,7 +8,7 @@
homepage "https://www.qgis.org/"

livecheck do
url "https://qgis.org/downloads/macos/qgis-macos-ltr.sha256sum"
url "https://download.qgis.org/downloads/macos/qgis-macos-ltr.sha256sum"
regex(/qgis_ltr_final[._-]v?(\d+(?:_\d+)+)[._-](\d+_\d+)\.dmg/i)
strategy :page_match do |page, regex|
page.scan(regex).map { |match| "#{match[0].tr("_", ".")},#{match[1]}" }
Expand Down
2 changes: 1 addition & 1 deletion Casks/s/salt.rb
Expand Up @@ -11,7 +11,7 @@
homepage "https://saltproject.io/"

livecheck do
url "https://repo.saltproject.io/salt/py3/macos/latest"
url "https://repo.saltproject.io/salt/py3/macos/latest/"
regex(/salt[._-]v?(\d+(?:\.\d+)+)-py3-#{arch}\.pkg/)
end

Expand Down
4 changes: 2 additions & 2 deletions Casks/s/shearwater-cloud.rb
Expand Up @@ -5,10 +5,10 @@
url "https://downloads.shearwater.com/livedownloads/ShearwaterCloudInstaller_#{version}.dmg"
name "Shearwater Cloud"
desc "Review, edit and share dive log data"
homepage "https://www.shearwater.com/"
homepage "https://shearwater.com/"

livecheck do
url "https://www.shearwater.com/cloud/"
url "https://shearwater.com/pages/shearwater-cloud"
regex(/href=.*?ShearwaterCloudInstaller[._-]v?(\d+(?:\.\d+)+)\.dmg/i)
end

Expand Down
7 changes: 4 additions & 3 deletions Casks/s/shift.rb
Expand Up @@ -5,13 +5,14 @@
sha256 arm: "ed9648e7b1c62d54a20b43ec1a4dfc19a7f5a5af8ef2b91e271d9aafaa555a63",
intel: "b2ad6011b0981c7d840495687bf73e683570781c7f9c36f7ae09d76d703255e8"

url "https://updates.tryshift.com/v#{version.major_minor_patch}/stable/shift-v#{version}-stable-#{arch}.dmg"
url "https://updates.tryshift.com/v#{version.major_minor_patch}/stable/shift-v#{version}-stable-#{arch}.dmg",
verified: "updates.tryshift.com/"
name "Shift"
desc "Workstation to streamline your accounts, apps, and workflows"
homepage "https://tryshift.com/"
homepage "https://shift.com/"

livecheck do
url "https://tryshift.com/download/?platform=mac"
url "https://shift.com/download/?platform=mac"
regex(/href=.*?(\d+(?:[._-]\d+)+)[._-]stable.*?\.dmg/i)
end

Expand Down
2 changes: 1 addition & 1 deletion Casks/t/thingsmacsandboxhelper.rb
Expand Up @@ -5,7 +5,7 @@
url "https://static.culturedcode.com/things/thingssandboxhelper/#{version}/ThingsHelper.zip"
name "Things Helper"
desc "Helper application for Things"
homepage "https://culturedcode.com/things/mac/help/things-sandboxing-helper-things#{version.major}/"
homepage "https://culturedcode.com/things/help/things-sandboxing-helper-things#{version.major}/"

livecheck do
url :homepage
Expand Down
2 changes: 1 addition & 1 deletion Casks/y/youlean-loudness-meter.rb
Expand Up @@ -8,7 +8,7 @@
homepage "https://youlean.co/youlean-loudness-meter/"

livecheck do
url "https://youlean.co/download/"
url "https://youlean.co/download-youlean-loudness-meter/"
regex(%r{href=.*?/(\w+)/(\w+)/youlean[._-]loudness[._-]meter[._-]\d+[._-]v?(\d+(?:\.\d+)+)[._-]macOS\.zip}i)
strategy :page_match do |page, regex|
page.scan(regex).map { |match| "#{match[2]},#{match[0]},#{match[1]}" }
Expand Down

0 comments on commit cdc9e7e

Please sign in to comment.