blob: 885f3b15786d37093f3e0cfd770227988fb242fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
cask 'with-uninstall-script-app' do
version '1.2.3'
sha256 '5633c3a0f2e572cbf021507dec78c50998b398c343232bdfc7e26221d0a5db4d'
url "file://#{TEST_FIXTURE_DIR}/cask/MyFancyApp.zip"
homepage 'http://example.com/MyFancyApp'
app 'MyFancyApp/MyFancyApp.app'
postflight do
IO.write "#{appdir}/MyFancyApp.app/uninstall.sh", <<~EOS
#!/bin/sh
/bin/rm -r "#{appdir}/MyFancyApp.app"
EOS
end
uninstall script: {
executable: "#{appdir}/MyFancyApp.app/uninstall.sh",
sudo: false
}
end
|