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
6 changes: 3 additions & 3 deletions Casks/agencyzero-experimental.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
# The bundle is ad-hoc signed until the application has a renewed Developer
# ID and notarization path. Homebrew otherwise leaves quarantine in place and
# macOS reports the application as damaged on first launch.
postflight do
system_command "/usr/bin/xattr",
args: ["-dr", "com.apple.quarantine", "#{appdir}/AgencyZero Experimental.app"]
postflight_steps do
run "/usr/bin/xattr",
args: ["-dr", "com.apple.quarantine", "{{appdir}}/AgencyZero Experimental.app"]
end

zap trash: [
Expand Down
6 changes: 3 additions & 3 deletions Casks/agencyzero.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
#
# Delete this block once the bundle is notarized: leaving it in would strip a
# Gatekeeper check that users should get.
postflight do
system_command "/usr/bin/xattr",
args: ["-dr", "com.apple.quarantine", "#{appdir}/AgencyZero.app"]
postflight_steps do
run "/usr/bin/xattr",
args: ["-dr", "com.apple.quarantine", "{{appdir}}/AgencyZero.app"]
end

zap trash: [
Expand Down
42 changes: 20 additions & 22 deletions Casks/agentcode.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
cask "agentcode" do
# AgentCode is distributed from a fixed CDN path while releases remain
# private. Reinstalling the cask fetches the current signed archive.
version :latest
sha256 :no_check
version "0.1.1"
sha256 "5c92404ab3398adc4d91bf85dae4b6d23ca0dee9b4f59634ba46f59641843c2f"

url "https://24x.ai/agentcode/AgentCode-aarch64-apple-darwin.tar.gz"
url "https://24x.ai/agentcode/AgentCode-aarch64-apple-darwin.tar.gz?v=#{version}"
name "AgentCode"
desc "Persistent semantic workspace for coding agents"
homepage "https://github.com/pathscale/agentcode"
Expand All @@ -18,25 +16,25 @@
# The two Mach-O executables are ad-hoc signed rather than notarized.
# Homebrew quarantines cask downloads, so clear that attribute before first
# execution or Gatekeeper reports the binaries as damaged.
postflight do
system_command "/usr/bin/xattr",
args: [
"-dr",
"com.apple.quarantine",
"#{staged_path}/agentcode",
"#{staged_path}/codeserver",
]
system_command "#{staged_path}/codeserver", args: ["install"]
system_command "#{staged_path}/codeserver", args: ["start"]
postflight_steps do
run "/usr/bin/xattr",
args: [
"-dr",
"com.apple.quarantine",
"{{staged_path}}/agentcode",
"{{staged_path}}/codeserver",
]
run "{{staged_path}}/codeserver", args: ["install"]
run "{{staged_path}}/codeserver", args: ["start"]
end

uninstall_preflight do
system_command "#{staged_path}/codeserver",
args: ["stop"],
must_succeed: false
system_command "#{staged_path}/codeserver",
args: ["uninstall"],
must_succeed: false
uninstall_preflight_steps do
run "{{staged_path}}/codeserver",
args: ["stop"],
must_succeed: false
run "{{staged_path}}/codeserver",
args: ["uninstall"],
must_succeed: false
end

zap trash: "~/Library/Application Support/com.pathscale.agentcode"
Expand Down
6 changes: 3 additions & 3 deletions Casks/chuzz.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
#
# Delete this block once the bundle is notarized: leaving it in would strip a
# Gatekeeper check that users should get.
postflight do
system_command "/usr/bin/xattr",
args: ["-dr", "com.apple.quarantine", "#{appdir}/Chuzz.app"]
postflight_steps do
run "/usr/bin/xattr",
args: ["-dr", "com.apple.quarantine", "{{appdir}}/Chuzz.app"]
end

# Chuzz keeps no profile on disk yet: history and cookies live in memory for
Expand Down