diff --git a/distribution.xml b/distribution.xml index a5be859..848d281 100644 --- a/distribution.xml +++ b/distribution.xml @@ -37,7 +37,7 @@ https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/I = 0; +} + function pm_firefox_selected() { return my.target.receiptForIdentifier("ee.ria.open-eid") == null || my.target.receiptForIdentifier("ee.ria.firefox-pkcs11-loader") != null; @@ -120,6 +128,14 @@ function pm_drivers_selected() { (my.target.receiptForIdentifier("ee.ria.esteid-ctk-tokend") != null || my.target.receiptForIdentifier("org.opensc-project.mac") != null); } + +function pm_drivers_old_enabled() { + return system.compareVersions(system.version.ProductVersion, '10.12') < 0; +} + +function pm_drivers_new_enabled() { + return system.compareVersions(system.version.ProductVersion, '10.12') >= 0; +} ]]> @@ -135,7 +151,8 @@ function pm_drivers_selected() { Open-EID.pkg - safari-token-signing.pkg + safari-token-signing.pkg + firefox-token-signing.pkg token-signing-firefox.pkg @@ -154,6 +171,10 @@ function pm_drivers_selected() { opensc.pkg - esteid-ctk-tokend.pkg + esteid-ctk-tokend.pkg + runtime.pkg + tokend.pkg + pkcs11.pkg + neutralgui.pkg diff --git a/uninstall.sh b/uninstall.sh index 42cfac9..a72de47 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -10,7 +10,7 @@ function remove_all { sudo rm -rf /Library/PreferencePanes/id-updater.prefPane echo 'Removing browser plug-ins and extensions' - sudo rm -rf \ + sudo rm -rf /Library/Internet\ Plug-Ins/esteidfirefoxplugin.bundle \ /Library/Google/Chrome/NativeMessagingHosts/chrome-token-signing.app \ /Library/Google/Chrome/NativeMessagingHosts/ee.ria.esteid.json \ /Library/Application\ Support/Google/Chrome/External\ Extensions/ckjefchnfjhjfedoccjbhjpbncimppeg.json \ @@ -31,8 +31,10 @@ function remove_all { echo 'Removing Drivers' sudo /usr/local/bin/opensc-uninstall + echo y | sudo /Library/AWP/awp_uninstall.sh sudo rm -rf /Library/Security/tokend/EstEID.tokend sudo rm -rf /Applications/Utilities/EstEIDTokenApp.app + sudo killall -9 OTCryptokiGuiSvr echo 'Cleaning up' sudo pkgutil --forget ee.ria.open-eid @@ -43,6 +45,7 @@ function remove_all { sudo pkgutil --forget ee.ria.token-signing-chrome-policy sudo pkgutil --forget ee.ria.chrome-token-signing-policy sudo pkgutil --forget ee.ria.safari-token-signing + sudo pkgutil --forget ee.ria.firefox-token-signing sudo pkgutil --forget ee.ria.firefox-pkcs11-loader sudo pkgutil --forget ee.ria.esteid-tokend sudo pkgutil --forget ee.ria.esteid-ctk-tokend