Skip to content

Commit 08c1f6b

Browse files
github-actions[bot]rcjsuen
authored andcommitted
chore(cask): update sbx to v0.24.1
1 parent c8ea45f commit 08c1f6b

2 files changed

Lines changed: 33 additions & 2 deletions

File tree

Casks/sbx.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cask "sbx" do
2-
version "0.23.0"
3-
sha256 "5d6472034f93eccfb853b5a7241b66592b8bd6fa9c97043e9fbc7323b986f003"
2+
version "0.24.1"
3+
sha256 "d96459de37a65f56454704866f2e8c83dd1814ab29adc32461bebf1bf70f474e"
44

55
url "https://github.com/docker/sbx-releases/releases/download/v#{version}/DockerSandboxes-darwin.tar.gz"
66
name "Docker Sandboxes"

Casks/sbx@0.24.1.rb

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
cask "sbx@0.24.1" do
2+
version "0.24.1"
3+
sha256 "d96459de37a65f56454704866f2e8c83dd1814ab29adc32461bebf1bf70f474e"
4+
5+
url "https://github.com/docker/sbx-releases/releases/download/v#{version}/DockerSandboxes-darwin.tar.gz"
6+
name "Docker Sandboxes"
7+
desc "Build, run, and govern agents across the software development lifecycle"
8+
homepage "https://github.com/docker/sbx-releases"
9+
10+
depends_on arch: :arm64,
11+
macos: ">= :tahoe"
12+
13+
binary "bin/sbx", target: "sbx-0.24.1"
14+
bash_completion "completions/bash/sbx", target: "sbx-0.24.1"
15+
fish_completion "completions/fish/sbx.fish", target: "sbx-0.24.1.fish"
16+
zsh_completion "completions/zsh/_sbx", target: "_sbx-0.24.1"
17+
18+
uninstall_preflight do
19+
sbx_binary = "#{caskroom_path}/#{version}/bin/sbx"
20+
next unless File.exist?(sbx_binary)
21+
22+
system_command sbx_binary,
23+
args: ["daemon", "stop"],
24+
print_stderr: false
25+
end
26+
27+
caveats <<~EOS
28+
Since a version-specific cask was installed, the binary to use is: sbx-#{version}
29+
Note: Prompt for update will be disabled for version-specific installations.
30+
EOS
31+
end

0 commit comments

Comments
 (0)