-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
/
bandage.rb
27 lines (22 loc) · 897 Bytes
/
bandage.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cask "bandage" do
arch arm: "aarch64", intel: "x86-64"
version "0.9.0"
sha256 arm: "0bf30966957a5949bf40595ae05d56bb84e504ee8d25e346ccad631c4588e815",
intel: "26e775c638bc4da1eb3a1b6e835a3916f64d89cad04050f70ccc41f847488238"
url "https://github.com/rrwick/Bandage/releases/download/v#{version}/Bandage_macOS-#{arch}_v#{version}.zip",
verified: "github.com/rrwick/Bandage/"
name "Bandage"
desc "Bioinformatics app for navigating de novo assembly graphs"
homepage "https://rrwick.github.io/Bandage/"
depends_on macos: ">= :big_sur"
app "Bandage.app"
# shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
shimscript = "#{staged_path}/bandage.wrapper.sh"
binary shimscript, target: "bandage"
preflight do
File.write shimscript, <<~EOS
#!/bin/sh
exec '#{appdir}/Bandage.app/Contents/MacOS/Bandage' "$@"
EOS
end
end