homebrew-cask/Casks/autofirma.rb

32 lines
1.1 KiB
Ruby
Raw Normal View History

2017-06-28 08:37:10 +08:00
cask 'autofirma' do
version '1.6.5'
2019-09-24 05:25:33 +08:00
sha256 '4564893f65a1566ea82c131a63bb56b44dbd2bcc218b5ba501ebb6dc22634c79'
2017-06-28 08:37:10 +08:00
# estaticos.redsara.es/comunes/autofirma was verified as official when first introduced to the cask
url 'https://estaticos.redsara.es/comunes/autofirma/currentversion/AutoFirma_Mac.zip'
name 'AutoFirma'
2020-01-13 09:34:03 +08:00
homepage 'https://firmaelectronica.gob.es/Home/Descargas.htm'
2017-06-28 08:37:10 +08:00
2018-05-03 17:58:33 +08:00
pkg "AutoFirma_#{version.dots_to_underscores}.pkg"
2017-06-28 08:37:10 +08:00
# remove 'Autofirma ROOT' and '127.0.0.1' certificates from keychain (these were installed by pkg)
uninstall_postflight do
system_command '/usr/bin/security',
args: [
'delete-certificate',
'-c', 'AutoFirma ROOT'
],
sudo: true
system_command '/usr/bin/security',
args: [
'delete-certificate',
'-c', '127.0.0.1'
],
sudo: true
end
uninstall pkgutil: 'es.gob.afirma',
delete: '/Applications/AutoFirma.app'
end