use `installer :script` in private-internet-access
* hoist primary command out of `postflight` into `installer` artifact * this Cask did not use the `caskroom_only` idiom
This commit is contained in:
parent
9e9b48421c
commit
ab1f6fb94d
|
@ -6,11 +6,11 @@ class PrivateInternetAccess < Cask
|
|||
homepage 'https://www.privateinternetaccess.com'
|
||||
license :unknown
|
||||
|
||||
installer :script => 'Private Internet Access Installer.app/Contents/MacOS/runner.sh'
|
||||
|
||||
postflight do
|
||||
system '/usr/bin/sudo', '-E', '--',
|
||||
"#{destination_path}/Private Internet Access Installer.app/Contents/MacOS/runner.sh"
|
||||
system '/usr/bin/sudo', '-E', '--',
|
||||
'/usr/sbin/chown', '-R', '--', "#{Etc.getpwuid(Process.euid).name}:staff", Pathname.new(File.expand_path('~')).join('.pia_manager')
|
||||
system '/usr/bin/sudo', '-E', '--',
|
||||
'/usr/sbin/chown', '-R', '--', "#{Etc.getpwuid(Process.euid).name}:staff", Pathname.new(File.expand_path('~')).join('.pia_manager')
|
||||
end
|
||||
|
||||
uninstall :delete => '/Applications/Private Internet Access.app'
|
||||
|
|
Loading…
Reference in New Issue