fix entitlements
This commit is contained in:
parent
9129229c23
commit
3f3840ba75
|
@ -4,9 +4,5 @@
|
|||
<dict>
|
||||
<key>com.apple.application-identifier</key>
|
||||
<string>com.parallels.toolbox.EncryptFiles</string>
|
||||
<key>keychain-access-groups</key>
|
||||
<array>
|
||||
<string>com.parallels.toolbox.EncryptFiles</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
@ -10,9 +10,5 @@
|
|||
<true/>
|
||||
<key>com.apple.security.device.camera</key>
|
||||
<true/>
|
||||
<key>keychain-access-groups</key>
|
||||
<array>
|
||||
<string>com.parallels.toolbox</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
@ -13,6 +13,7 @@ function export_entitlements() {
|
|||
codesign -d --entitlements - --xml "$1" 2>/dev/null | plutil -convert xml1 -o - - > "$2"
|
||||
/usr/libexec/PlistBuddy -c "Delete :com.apple.security.application-groups" "$2" 2>/dev/null
|
||||
/usr/libexec/PlistBuddy -c "Delete :com.apple.developer.team-identifier" "$2" 2>/dev/null
|
||||
/usr/libexec/PlistBuddy -c "Delete :keychain-access-groups" "$2" 2>/dev/null
|
||||
sed -i "" "s/4C6364ACXT\.//g" "$2"
|
||||
}
|
||||
|
||||
|
|
|
@ -21,9 +21,12 @@ PTFM_DMG_FILE="${TEMP_PATH}/download/ParallelsToolbox-${PTFM_VERSION}.dmg"
|
|||
|
||||
PTFM_PUBLISH_FILE="${PUBLISH_PATH}/ParallelsToolbox-${PTFM_VERSION}_Crack.dmg"
|
||||
|
||||
# CODESIGN_CERT=73B34EBEE504D5CEE35B113A22CEBFD381A21033
|
||||
CODESIGN_CERT=-
|
||||
|
||||
if [ -n "$(security find-identity -v -p codesigning | grep 73B34EBEE504D5CEE35B113A22CEBFD381A21033)" ]; then
|
||||
CODESIGN_CERT=73B34EBEE504D5CEE35B113A22CEBFD381A21033
|
||||
fi
|
||||
|
||||
PTFM_TMP_DIR="${TEMP_PATH}/ptfm_files"
|
||||
|
||||
function sign_cmd() {
|
||||
|
@ -86,6 +89,9 @@ function sign_ptfm_application() {
|
|||
IFS=$'\n'
|
||||
for name in $(ls "${PTFM_TMP_DIR}/Install Parallels Toolbox.app/Contents/Applications/")
|
||||
do
|
||||
if [ -f "${PTFM_TMP_DIR}/Install Parallels Toolbox.app/Contents/Applications/${name}/Contents/embedded.provisionprofile" ]; then
|
||||
rm -f "${PTFM_TMP_DIR}/Install Parallels Toolbox.app/Contents/Applications/${name}/Contents/embedded.provisionprofile" > /dev/null
|
||||
fi
|
||||
sign_cmd "${PTFM_TMP_DIR}/Install Parallels Toolbox.app/Contents/Applications/${name}"
|
||||
done
|
||||
IFS=oldIFS
|
||||
|
@ -94,6 +100,9 @@ function sign_ptfm_application() {
|
|||
function sign_ptfm() {
|
||||
echo "[*] Sign Parallels Toolbox App"
|
||||
sign_ptfm_application
|
||||
if [ -f "${PTFM_TMP_DIR}/Install Parallels Toolbox.app/Contents/embedded.provisionprofile" ]; then
|
||||
rm -f "${PTFM_TMP_DIR}/Install Parallels Toolbox.app/Contents/embedded.provisionprofile" > /dev/null
|
||||
fi
|
||||
sign_cmd "${PTFM_TMP_DIR}/Install Parallels Toolbox.app/Contents/Library/Install/ToolboxInstaller"
|
||||
sign_cmd "${PTFM_TMP_DIR}/Install Parallels Toolbox.app"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue