diff --git a/Casks/agencyzero-experimental.rb b/Casks/agencyzero-experimental.rb index ad19fb3..7ed3bb0 100644 --- a/Casks/agencyzero-experimental.rb +++ b/Casks/agencyzero-experimental.rb @@ -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: [ diff --git a/Casks/agencyzero.rb b/Casks/agencyzero.rb index cc9afa1..179e466 100644 --- a/Casks/agencyzero.rb +++ b/Casks/agencyzero.rb @@ -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: [ diff --git a/Casks/agentcode.rb b/Casks/agentcode.rb index 8f3a7c9..d1637e5 100644 --- a/Casks/agentcode.rb +++ b/Casks/agentcode.rb @@ -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" @@ -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" diff --git a/Casks/chuzz.rb b/Casks/chuzz.rb index 3dbfa4b..2ae466b 100644 --- a/Casks/chuzz.rb +++ b/Casks/chuzz.rb @@ -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