Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
22 changes: 12 additions & 10 deletions Casks/open-codesign.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
version "0.2.1"

on_arm do
sha256 "9e8ac362a79fdbe929913d3d5fb296b0b803fe7b2d680d1d0f71b7e3c0aaed70"

url "https://github.com/OpenCoworkAI/open-codesign/releases/download/v#{version}/open-codesign-#{version}-arm64.dmg",
verified: "github.com/OpenCoworkAI/open-codesign/"
sha256 "9e8ac362a79fdbe929913d3d5fb296b0b803fe7b2d680d1d0f71b7e3c0aaed70"
end
on_intel do
sha256 "6899f89169c37893575c597f1e98512ada873465cc2e9710b58d83e25342b8f3"

url "https://github.com/OpenCoworkAI/open-codesign/releases/download/v#{version}/open-codesign-#{version}-x64.dmg",
verified: "github.com/OpenCoworkAI/open-codesign/"
sha256 "6899f89169c37893575c597f1e98512ada873465cc2e9710b58d83e25342b8f3"
end

name "Open CoDesign"
Expand All @@ -22,10 +24,17 @@
end

auto_updates false
depends_on macos: ">= :big_sur"
depends_on macos: :big_sur

app "Open CoDesign.app"

zap trash: [
"~/Library/Application Support/open-codesign",
"~/Library/Logs/open-codesign",
"~/Library/Preferences/ai.opencowork.codesign.plist",
"~/Library/Saved Application State/ai.opencowork.codesign.savedState",
]

# Unsigned build — macOS will refuse the first launch with a generic
# "damaged, move to Trash" dialog. Code-signing + notarization is on the
# Stage-2 roadmap; until then users need the xattr workaround below.
Expand All @@ -37,11 +46,4 @@

You only need to do this once per install/update.
EOS

zap trash: [
"~/Library/Application Support/open-codesign",
"~/Library/Preferences/ai.opencowork.codesign.plist",
"~/Library/Logs/open-codesign",
"~/Library/Saved Application State/ai.opencowork.codesign.savedState",
]
end
12 changes: 6 additions & 6 deletions Casks/open-cowork.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@
desc "Desktop AI agent app with sandboxed environment"
homepage "https://github.com/OpenCoworkAI/open-cowork"

depends_on macos: ">= :ventura"
depends_on macos: :ventura
depends_on arch: :arm64

app "Open Cowork.app"

zap trash: [
"~/Library/Application Support/open-cowork",
"~/Library/Preferences/com.opencowork.app.plist",
]

caveats <<~EOS
Open Cowork is not signed with an Apple Developer certificate.
If macOS shows "Apple cannot verify this app", reinstall with:
brew reinstall --cask --no-quarantine open-cowork
Or manually remove the quarantine flag:
xattr -rd com.apple.quarantine /Applications/Open\\ Cowork.app
EOS

zap trash: [
"~/Library/Application Support/open-cowork",
"~/Library/Preferences/com.opencowork.app.plist",
]
end