Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions Casks/a/anycubic-slicer-next.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
cask "anycubic-slicer-next" do
version "1.3.7.3"
sha256 :no_check

on_arm do
url "https://cdn.cloud-platform.anycubic.com/file/2025/09/28/dmg/68d905e851e28229897aa0a118a4ba56/codesign_20250928_152423_AnycubicSlicerNext_arm64.dmg"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a lot of variable parts in this url that will change between versions, these will need to be captured somehow and stored in the version, so that the cask can be updated systematically.

end
on_intel do
url "https://cdn.cloud-platform.anycubic.com/file/2025/09/28/dmg/68d906321ed2dde18ce952567b5a041d/codesign_20250928_152423_AnycubicSlicerNext_x86_64.dmg"
end

name "Anycubic Slicer Next"
desc "Slicer for Anycubic 3D printers"
homepage "https://www.anycubic.com/"

livecheck do
url "https://wiki.anycubic.com/en/software-and-app/new-page-anycubic-slicer-beta(orca-version)/anycubic-slicer-next-(orca-version)-update-record"
strategy :page_match do |page|
page.scan(/V(\d+(?:\.\d+)+)/i).flatten.first
end
Comment on lines 18 to 31
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
strategy :page_match do |page|
page.scan(/V(\d+(?:\.\d+)+)/i).flatten.first
end
regex(V(\d+(?:\.\d+)+)/i)

We will need a regex that is more closely anchored to a url or something, not just any number after "V". But you also don't need to do block here.

end

depends_on macos: ">= :big_sur"

app "AnycubicSlicerNext.app"

zap trash: [
"~/Library/Application Support/Anycubic Slicer Next",
"~/Library/Caches/Anycubic Slicer Next",
"~/Library/Preferences/com.anycubic.slicer.Next.plist",
"~/Library/Saved Application State/com.anycubic.slicer.Next.savedState",
]
end
Loading