creality-print: updates for `url`, `livecheck`, `caveats`

This commit is contained in:
Justin Krehel 2023-12-24 15:00:12 -05:00
parent e44ff0d9b7
commit e257d38fb4
No known key found for this signature in database
GPG Key ID: 757F1864C8CF3605
1 changed files with 8 additions and 6 deletions

View File

@ -2,16 +2,14 @@ cask "creality-print" do
version "4.3.8.6984"
sha256 "d2febf68dce011ffa317837e5e63d6729cdd254894ba34129a57118869b5cf91"
url "https://github.com/CrealityOfficial/CrealityPrint/releases/download/v#{version.split(".")[0..2].join(".")}/Creality_Print-v#{version}-macx-Release.dmg"
url "https://file2-cdn.creality.com/file/8dcd085c64cc389dacd21cd851593d42/Creality_Print-v#{version}-macx-Release.dmg"
name "Creality Print"
desc "Slicer and cloud services for some Creality FDM 3D printers"
homepage "https://github.com/CrealityOfficial"
homepage "https://www.creality.com/pages/download-software"
livecheck do
url "https://api.github.com/repos/CrealityOfficial/CrealityPrint/releases"
strategy :page_match do |page|
page.scan(/Creality_Print-v?(\d+(?:\.\d+)+)-macx-Release\.dmg/i).map(&:first)
end
url :homepage
regex(/Creality[._-]Print[._-]v?(\d+(?:\.\d+)+)[._-]macx[._-]Release\.dmg/i)
end
app "Creality Print.app"
@ -21,4 +19,8 @@ cask "creality-print" do
"~/Library/Caches/Creality",
"~/Library/Saved Application State/com.creality.crealityprint.savedState",
]
caveats do
requires_rosetta
end
end