Skip to content

Commit 2ada207

Browse files
chore(cask): update ds to v0.18.7
1 parent 87851b2 commit 2ada207

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

Casks/ds.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cask "ds" do
2-
version "0.18.6"
3-
sha256 "eccb3f1bcaa373a43f431201da0de29537e04041414a30158dd8e89e41e64136"
2+
version "0.18.7"
3+
sha256 "54585c5575e3a96f3357efa250ebf11d700cc9abdc88e39d1964726a92ff609a"
44

55
url "https://github.com/docker/dash-releases/releases/download/v#{version}/Dash.tar.gz"
66
name "Dash by Docker"

Casks/ds@0.18.7.rb

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
cask "ds@0.18.7" do
2+
version "0.18.7"
3+
sha256 "54585c5575e3a96f3357efa250ebf11d700cc9abdc88e39d1964726a92ff609a"
4+
5+
url "https://github.com/docker/dash-releases/releases/download/v#{version}/Dash.tar.gz"
6+
name "Dash by Docker"
7+
desc "Build, run, and govern agents across the software development lifecycle"
8+
homepage "https://github.com/docker/dash-releases"
9+
10+
depends_on arch: :arm64,
11+
macos: ">= :tahoe"
12+
13+
binary "bin/ds", target: "ds-0.18.7"
14+
bash_completion "completions/bash/ds", target: "ds-0.18.7"
15+
fish_completion "completions/fish/ds.fish", target: "ds-0.18.7.fish"
16+
zsh_completion "completions/zsh/_ds", target: "_ds-0.18.7"
17+
18+
uninstall_preflight do
19+
ds_binary = "#{caskroom_path}/#{version}/bin/ds"
20+
next unless File.exist?(ds_binary)
21+
22+
system_command ds_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: ds-#{version}
29+
Note: Prompt for update will be disabled for version-specific installations.
30+
EOS
31+
end

0 commit comments

Comments
 (0)