use pluginkit to register OpenSCToken
This commit is contained in:
parent
20ea45b8f1
commit
718d4852da
@ -130,8 +130,8 @@ else
|
||||
git clone http://github.com/frankmorgner/OpenSCToken.git
|
||||
fi
|
||||
|
||||
# Build and copy OpenSCToken
|
||||
xcodebuild -target OpenSCToken -configuration Deployment -project OpenSCToken/OpenSCTokenApp.xcodeproj install DSTROOT=${BUILDPATH}/target
|
||||
# Build and copy OpenSCTokenApp
|
||||
xcodebuild -target OpenSCTokenApp -configuration Release -project OpenSCToken/OpenSCTokenApp.xcodeproj install DSTROOT=${BUILDPATH}/target
|
||||
|
||||
#codesign --sign "$SIGNING_IDENTITY" --force --entitlements OpenSCToken/OpenSCToken/opensctoken.entitlements target/Library/OpenSC/bin/*
|
||||
#codesign --sign "$SIGNING_IDENTITY" --force --entitlements OpenSCToken/OpenSCToken/opensctoken.entitlements target/Library/OpenSC/lib/*.dylib
|
||||
|
@ -20,7 +20,11 @@ rm -rf "/Applications/OpenSC Notify.app"
|
||||
rm -rf /Library/OpenSC
|
||||
rm -rf /Library/Security/tokend/OpenSC.tokend
|
||||
rm -rf /System/Library/Security/tokend/OpenSC.tokend
|
||||
rm -rf /System/Library/Frameworks/CryptoTokenKit.framework/PlugIns/OpenSCToken.appex
|
||||
|
||||
if [ -e "/Library/OpenSC/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex" ]
|
||||
then
|
||||
pluginkit -r /Library/OpenSC/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex
|
||||
fi
|
||||
|
||||
# delete receipts on 10.6+
|
||||
for file in /var/db/receipts/org.opensc-project.mac.bom /var/db/receipts/org.opensc-project.mac.plist; do
|
||||
|
@ -19,4 +19,8 @@ for f in /Library/OpenSC/bin/*
|
||||
do
|
||||
ln -sf $f /usr/local/bin
|
||||
done
|
||||
if [ -e "/Library/OpenSC/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex" ]
|
||||
then
|
||||
pluginkit -a /Library/OpenSC/OpenSCTokenApp.app/Contents/PlugIns/OpenSCToken.appex
|
||||
fi
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user