Merge pull request #153180 from nathan-courtney-pieces/pieces-2.3.1

pieces: new cask
This commit is contained in:
Miccal Matthews 2023-08-21 08:16:09 +08:00 committed by GitHub
commit 2e90984940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 33 additions and 0 deletions

33
Casks/p/pieces.rb Normal file
View File

@ -0,0 +1,33 @@
cask "pieces" do
arch arm: "-arm64"
livecheck_arch = on_arch_conditional arm: "_arm64"
version "2.3.1"
sha256 :no_check
url "https://builds.pieces.app/stages/production/pieces_for_x/macos#{arch}/download"
name "Pieces"
desc "Code snippets, screenshots and workflow context"
homepage "https://pieces.app/"
livecheck do
url "https://builds.pieces.app/stages/production/pieces_for_x/sparkle#{livecheck_arch}"
strategy :sparkle
end
auto_updates true
depends_on cask: "pieces-os"
depends_on macos: ">= :big_sur"
app "Pieces.app"
uninstall quit: "com.pieces.x"
zap trash: [
"~/Library/Application Support/com.pieces.x",
"~/Library/com.pieces.pfd",
"~/Library/HTTPStorages/com.pieces.x",
"~/Library/Preferences/com.pieces.x.plist",
"~/Library/Saved Application State/com.pieces.x.savedState",
]
end