creality-print: updates for `url`, `livecheck`, `caveats`
This commit is contained in:
parent
e44ff0d9b7
commit
e257d38fb4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue