-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathexpressionist.rb
31 lines (25 loc) · 1022 Bytes
/
expressionist.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
28
29
30
31
cask 'expressionist' do
version :latest
sha256 :no_check
# aescripts.com was verified as official when first introduced to the cask
url 'https://aescripts.com/downloadable/download/sample/sample_id/411',
user_agent: :fake
name 'Expressionist'
homepage "http://klustre.nl/#{token}"
depends_on cask: 'exmancmd'
postflight do
zxp = Dir["#{staged_path}/expressionist*/Expressionist*.zxp"][0]
system_command "#{HOMEBREW_PREFIX}/bin/exmancmd", args: ['--install', zxp]
end
uninstall script: {
executable: "#{HOMEBREW_PREFIX}/bin/exmancmd",
args: ['--remove', 'com.aescripts.expressionist'],
}
support = '~/Library/Application Support/Aescripts'
zap trash: [
"#{support}/settings/com.aescripts.settings_Expressionist.json",
"#{support}/com.aescripts.Expressionist.lic",
],
rmdir: support
caveats "A license can be purchased at https://aescripts.com/#{token}."
end