32 lines
958 B
Ruby
32 lines
958 B
Ruby
cask 'softu2f' do
|
|
version '0.0.14'
|
|
sha256 '6cc54f89438a4dacf5a009e4eba6d5ab8df81ec54b86d88cc5276cc144a73f76'
|
|
|
|
url "https://github.com/github/SoftU2F/releases/download/#{version}/SoftU2F.pkg"
|
|
appcast 'https://github.com/github/SoftU2F/releases.atom',
|
|
checkpoint: '7e3daaca9a5282c0316a39572dcef62b40303d3859c8bad99879122dc2be02ca'
|
|
name 'Soft U2F'
|
|
homepage 'https://github.com/github/SoftU2F'
|
|
|
|
depends_on macos: '>= :sierra'
|
|
|
|
pkg 'SoftU2F.pkg'
|
|
|
|
postflight do
|
|
launchd_plist = "#{ENV['HOME']}/Library/LaunchAgents/com.github.SoftU2F.plist"
|
|
|
|
system_command '/bin/launchctl',
|
|
args: ['unload', launchd_plist],
|
|
sudo: true
|
|
|
|
set_ownership launchd_plist
|
|
|
|
system_command '/bin/launchctl',
|
|
args: ['load', launchd_plist]
|
|
end
|
|
|
|
uninstall launchctl: 'com.github.SoftU2F',
|
|
kext: 'com.github.SoftU2FDriver',
|
|
pkgutil: 'com.GitHub.SoftU2F'
|
|
end
|