mirror of
https://git-qiuchenly.yltfspace.com/QiuChenly/corepatch
synced 2025-11-25 12:39:26 +08:00
Fix: ARM机器上注入CAD 2025 出现错误的问题。
This commit is contained in:
185
config.json
185
config.json
@@ -37,9 +37,7 @@
|
||||
"noSignTarget": true,
|
||||
"autoHandleHelper": true,
|
||||
"helperFile": "/Contents/Library/LaunchServices/com.nssurge.surge-mac.helper",
|
||||
"tccutil": [
|
||||
"All"
|
||||
],
|
||||
"tccutil": ["All"],
|
||||
"forQiuChenly": false
|
||||
},
|
||||
{
|
||||
@@ -52,17 +50,11 @@
|
||||
"helperFile": "/Contents/Library/LaunchServices/codes.rambo.AirBuddy.Installer",
|
||||
"SMExtra": "codes.rambo.AirBuddy",
|
||||
"needCopyToAppDir": true,
|
||||
"componentApp": [
|
||||
"/Contents/Library/LoginItems/AirBuddyHelper.app"
|
||||
],
|
||||
"tccutil": [
|
||||
"All"
|
||||
]
|
||||
"componentApp": ["/Contents/Library/LoginItems/AirBuddyHelper.app"],
|
||||
"tccutil": ["All"]
|
||||
},
|
||||
{
|
||||
"packageName": [
|
||||
"com.macpaw.CleanMyMac5"
|
||||
],
|
||||
"packageName": ["com.macpaw.CleanMyMac5"],
|
||||
"injectFile": "Sparkle.framework/Versions/B/Sparkle",
|
||||
"needCopyToAppDir": true,
|
||||
"noSignTarget": true,
|
||||
@@ -70,9 +62,7 @@
|
||||
"helperFile": [
|
||||
"/Contents/Library/LaunchServices/com.macpaw.CleanMyMac5.Agent"
|
||||
],
|
||||
"tccutil": [
|
||||
"All"
|
||||
]
|
||||
"tccutil": ["All"]
|
||||
},
|
||||
{
|
||||
"packageName": "com.heavylightapps.lasso",
|
||||
@@ -121,9 +111,7 @@
|
||||
"forQiuChenly": false,
|
||||
"autoHandleHelper": true,
|
||||
"helperFile": "/Contents/Library/LaunchServices/com.drbuho.disktool.NTFSHelperTool",
|
||||
"tccutil": [
|
||||
"All"
|
||||
]
|
||||
"tccutil": ["All"]
|
||||
},
|
||||
{
|
||||
"packageName": "com.proxyman.NSProxy-setapp",
|
||||
@@ -134,14 +122,10 @@
|
||||
"noSignTarget": true,
|
||||
"autoHandleHelper": true,
|
||||
"helperFile": "/Contents/Library/LaunchServices/com.proxyman.NSProxy.HelperTool",
|
||||
"tccutil": [
|
||||
"All"
|
||||
]
|
||||
"tccutil": ["All"]
|
||||
},
|
||||
{
|
||||
"packageName": [
|
||||
"com.macpaw.CleanMyMac-setapp"
|
||||
],
|
||||
"packageName": ["com.macpaw.CleanMyMac-setapp"],
|
||||
"appBaseLocate": "/Applications/Setapp/CleanMyMac X.app",
|
||||
"injectFile": "Announcements.framework/Versions/A/Announcements",
|
||||
"needCopyToAppDir": true,
|
||||
@@ -151,18 +135,11 @@
|
||||
"/Contents/Library/LaunchServices/com.macpaw.CleanMyMac-setapp.Agent",
|
||||
"/Contents/Library/LoginItems/CleanMyMac Menu.app/Contents/Library/LaunchServices/com.macpaw.CleanMyMac-setapp.Agent"
|
||||
],
|
||||
"componentApp": [
|
||||
"/Contents/Library/LoginItems/CleanMyMac Menu.app"
|
||||
],
|
||||
"tccutil": [
|
||||
"All"
|
||||
]
|
||||
"componentApp": ["/Contents/Library/LoginItems/CleanMyMac Menu.app"],
|
||||
"tccutil": ["All"]
|
||||
},
|
||||
{
|
||||
"packageName": [
|
||||
"com.edrawsoft.edrawmax",
|
||||
"com.edrawsoft.mindmaster"
|
||||
],
|
||||
"packageName": ["com.edrawsoft.edrawmax", "com.edrawsoft.mindmaster"],
|
||||
"injectFile": "QtXml.framework/Versions/5/QtXml",
|
||||
"needCopyToAppDir": true,
|
||||
"deepSignApp": true
|
||||
@@ -218,12 +195,7 @@
|
||||
"needCopyToAppDir": true,
|
||||
"deepSignApp": true,
|
||||
"injectFile": "Sparkle.framework/Versions/A/Sparkle",
|
||||
"tccutil": [
|
||||
"All",
|
||||
"Camera",
|
||||
"Microphone",
|
||||
"ScreenCapture"
|
||||
]
|
||||
"tccutil": ["All", "Camera", "Microphone", "ScreenCapture"]
|
||||
},
|
||||
{
|
||||
"packageName": "com.pixelmatorteam.pixelmator.touch.x.photo",
|
||||
@@ -272,9 +244,7 @@
|
||||
"autoHandleHelper": true,
|
||||
"helperNoInject": true,
|
||||
"helperFile": "/Contents/Library/LaunchServices/ws.stash.app.mac.daemon.helper",
|
||||
"tccutil": [
|
||||
"All"
|
||||
]
|
||||
"tccutil": ["All"]
|
||||
},
|
||||
{
|
||||
"packageName": "com.firecore.infuse",
|
||||
@@ -296,13 +266,7 @@
|
||||
"deepSignApp": true,
|
||||
"bridgeFile": "/Contents/MacOS/",
|
||||
"injectFile": "App Cleaner 8",
|
||||
"tccutil": [
|
||||
"All",
|
||||
"AddressBook",
|
||||
"Reminders",
|
||||
"Photos",
|
||||
"AppleEvents"
|
||||
]
|
||||
"tccutil": ["All", "AddressBook", "Reminders", "Photos", "AppleEvents"]
|
||||
},
|
||||
{
|
||||
"packageName": "com.nektony.MacCleaner-PRO-SIII",
|
||||
@@ -323,30 +287,21 @@
|
||||
"needCopyToAppDir": true,
|
||||
"deepSignApp": true,
|
||||
"injectFile": "Sparkle.framework/Versions/A/Sparkle",
|
||||
"tccutil": [
|
||||
"All",
|
||||
"Reminders",
|
||||
"Photos"
|
||||
]
|
||||
"tccutil": ["All", "Reminders", "Photos"]
|
||||
},
|
||||
{
|
||||
"packageName": "com.nektony.Duplicates-Finder",
|
||||
"injectFile": "OpenSSL.framework/Versions/A/OpenSSL",
|
||||
"needCopyToAppDir": true,
|
||||
"deepSignApp": true,
|
||||
"tccutil": [
|
||||
"All"
|
||||
]
|
||||
"tccutil": ["All"]
|
||||
},
|
||||
{
|
||||
"packageName": "com.nektony.Duplicate-File-Finder-SIII",
|
||||
"needCopyToAppDir": true,
|
||||
"deepSignApp": true,
|
||||
"injectFile": "Sparkle.framework/Versions/A/Sparkle",
|
||||
"tccutil": [
|
||||
"All",
|
||||
"Photos"
|
||||
]
|
||||
"tccutil": ["All", "Photos"]
|
||||
},
|
||||
{
|
||||
"packageName": "li.zihua.medis2",
|
||||
@@ -368,12 +323,7 @@
|
||||
"deepSignApp": true,
|
||||
"injectFile": "TSCAccount.framework/Versions/A/TSCAccount",
|
||||
"extraShell": "camtasia.sh",
|
||||
"tccutil": [
|
||||
"Camera",
|
||||
"Microphone",
|
||||
"ScreenCapture",
|
||||
"All"
|
||||
]
|
||||
"tccutil": ["Camera", "Microphone", "ScreenCapture", "All"]
|
||||
},
|
||||
{
|
||||
"packageName": "com.hankinsoft.osx.sqlprostudio",
|
||||
@@ -391,18 +341,14 @@
|
||||
"injectFile": "Bugsnag.framework/Versions/A/Bugsnag"
|
||||
},
|
||||
{
|
||||
"packageName": [
|
||||
"com.incrediblebee.Archiver-setapp"
|
||||
],
|
||||
"packageName": ["com.incrediblebee.Archiver-setapp"],
|
||||
"needCopyToAppDir": true,
|
||||
"bridgeFile": "/Contents/MacOS/",
|
||||
"deepSignApp": true,
|
||||
"injectFile": "Archiver"
|
||||
},
|
||||
{
|
||||
"packageName": [
|
||||
"com.krivoblotsky.ProjectsOrganizer-setapp"
|
||||
],
|
||||
"packageName": ["com.krivoblotsky.ProjectsOrganizer-setapp"],
|
||||
"needCopyToAppDir": true,
|
||||
"bridgeFile": "/Contents/MacOS/",
|
||||
"deepSignApp": true,
|
||||
@@ -561,6 +507,9 @@
|
||||
"bridgeFile": "/Contents/MacOS/",
|
||||
"injectFile": "AutoCAD",
|
||||
"needCopyToAppDir": true,
|
||||
"forceSignMainExecute": true,
|
||||
"deepSignApp": false,
|
||||
"noSignTarget": true,
|
||||
"noDeep": true
|
||||
},
|
||||
{
|
||||
@@ -598,17 +547,13 @@
|
||||
"entitlements": "signkeep.xml"
|
||||
},
|
||||
{
|
||||
"packageName": [
|
||||
"com.microsoft.Outlook"
|
||||
],
|
||||
"packageName": ["com.microsoft.Outlook"],
|
||||
"needCopyToAppDir": true,
|
||||
"injectFile": "ADAL4.framework/Versions/A/ADAL4",
|
||||
"entitlements": "signkeep.xml"
|
||||
},
|
||||
{
|
||||
"packageName": [
|
||||
"com.microsoft.Excel"
|
||||
],
|
||||
"packageName": ["com.microsoft.Excel"],
|
||||
"needCopyToAppDir": true,
|
||||
"injectFile": "Microsoft Excel",
|
||||
"bridgeFile": "/Contents/MacOS/",
|
||||
@@ -616,9 +561,7 @@
|
||||
"entitlements": "signkeep.xml"
|
||||
},
|
||||
{
|
||||
"packageName": [
|
||||
"com.microsoft.Powerpoint"
|
||||
],
|
||||
"packageName": ["com.microsoft.Powerpoint"],
|
||||
"needCopyToAppDir": true,
|
||||
"injectFile": "Microsoft PowerPoint",
|
||||
"bridgeFile": "/Contents/MacOS/",
|
||||
@@ -626,9 +569,7 @@
|
||||
"entitlements": "signkeep.xml"
|
||||
},
|
||||
{
|
||||
"packageName": [
|
||||
"com.microsoft.Word"
|
||||
],
|
||||
"packageName": ["com.microsoft.Word"],
|
||||
"needCopyToAppDir": true,
|
||||
"injectFile": "Microsoft Word",
|
||||
"bridgeFile": "/Contents/MacOS/",
|
||||
@@ -669,12 +610,7 @@
|
||||
"packageName": "com.mac.utility.screen.recorder",
|
||||
"bridgeFile": "/Contents/MacOS/",
|
||||
"injectFile": "OmniRecorder",
|
||||
"tccutil": [
|
||||
"All",
|
||||
"Camera",
|
||||
"Microphone",
|
||||
"ScreenCapture"
|
||||
]
|
||||
"tccutil": ["All", "Camera", "Microphone", "ScreenCapture"]
|
||||
},
|
||||
{
|
||||
"packageName": "com.mac.utility.media.player",
|
||||
@@ -763,17 +699,13 @@
|
||||
"injectFile": "BERegistration.framework/Versions/A/BERegistration"
|
||||
},
|
||||
{
|
||||
"packageName": [
|
||||
"tonyapp.devutils"
|
||||
],
|
||||
"packageName": ["tonyapp.devutils"],
|
||||
"needCopyToAppDir": true,
|
||||
"deepSignApp": true,
|
||||
"injectFile": "DiffMatchPatch.framework/Versions/A/DiffMatchPatch"
|
||||
},
|
||||
{
|
||||
"packageName": [
|
||||
"com.ideasoncanvas.mindnode.macos-setapp"
|
||||
],
|
||||
"packageName": ["com.ideasoncanvas.mindnode.macos-setapp"],
|
||||
"needCopyToAppDir": true,
|
||||
"deepSignApp": true,
|
||||
"injectFile": "CanvasLayout_19E0F1ED461C44E6_PackageProduct.framework/Versions/A/CanvasLayout_19E0F1ED461C44E6_PackageProduct"
|
||||
@@ -823,24 +755,14 @@
|
||||
"injectFile": "Paste",
|
||||
"needCopyToAppDir": true,
|
||||
"deepSignApp": true,
|
||||
"tccutil": [
|
||||
"All",
|
||||
"Camera",
|
||||
"Microphone",
|
||||
"ScreenCapture"
|
||||
]
|
||||
"tccutil": ["All", "Camera", "Microphone", "ScreenCapture"]
|
||||
},
|
||||
{
|
||||
"packageName": "cn.better365.ishot",
|
||||
"injectFile": "PTHotKey.framework/Versions/A/PTHotKey",
|
||||
"needCopyToAppDir": true,
|
||||
"deepSignApp": true,
|
||||
"tccutil": [
|
||||
"All",
|
||||
"Camera",
|
||||
"Microphone",
|
||||
"ScreenCapture"
|
||||
]
|
||||
"tccutil": ["All", "Camera", "Microphone", "ScreenCapture"]
|
||||
},
|
||||
{
|
||||
"packageName": [
|
||||
@@ -860,9 +782,7 @@
|
||||
"entitlements": "signkeep.xml",
|
||||
"autoHandleHelper": true,
|
||||
"helperFile": "/Contents/Library/LaunchServices/com.drbuho.BuhoCleaner.PrivilegedHelperTool",
|
||||
"tccutil": [
|
||||
"All"
|
||||
]
|
||||
"tccutil": ["All"]
|
||||
},
|
||||
{
|
||||
"packageName": "org.qcad",
|
||||
@@ -904,9 +824,7 @@
|
||||
"bridgeFile": "/Contents/MacOS/",
|
||||
"needCopyToAppDir": true,
|
||||
"deepSignApp": true,
|
||||
"tccutil": [
|
||||
"All"
|
||||
]
|
||||
"tccutil": ["All"]
|
||||
},
|
||||
{
|
||||
"packageName": "com.zeroonetwenty.BlueHarvest5",
|
||||
@@ -933,10 +851,7 @@
|
||||
"injectFile": "Sparkle.framework/Versions/B/Sparkle"
|
||||
},
|
||||
{
|
||||
"packageName": [
|
||||
"QReader.MarginStudyMac",
|
||||
"QReader.MarginStudy.easy"
|
||||
],
|
||||
"packageName": ["QReader.MarginStudyMac", "QReader.MarginStudy.easy"],
|
||||
"needCopyToAppDir": true,
|
||||
"deepSignApp": true,
|
||||
"noDeep": true,
|
||||
@@ -948,9 +863,7 @@
|
||||
"bridgeFile": "/Contents/MacOS/",
|
||||
"needCopyToAppDir": true,
|
||||
"deepSignApp": true,
|
||||
"tccutil": [
|
||||
"All"
|
||||
]
|
||||
"tccutil": ["All"]
|
||||
},
|
||||
{
|
||||
"packageName": "com.setapp.DesktopClient",
|
||||
@@ -1214,9 +1127,7 @@
|
||||
"bridgeFile": "/Contents/MacOS/",
|
||||
"injectFile": "AirBuddy",
|
||||
"needCopyToAppDir": true,
|
||||
"tccutil": [
|
||||
"All"
|
||||
],
|
||||
"tccutil": ["All"],
|
||||
"noSignTarget": true,
|
||||
"autoHandleHelper": true,
|
||||
"helperFile": "/Contents/Library/LaunchServices/codes.rambo.AirBuddy.Installer"
|
||||
@@ -1227,9 +1138,7 @@
|
||||
"bridgeFile": "/Contents/MacOS/",
|
||||
"injectFile": "AirBuddyHelper",
|
||||
"needCopyToAppDir": true,
|
||||
"tccutil": [
|
||||
"All"
|
||||
]
|
||||
"tccutil": ["All"]
|
||||
},
|
||||
{
|
||||
"packageName": "codes.rambo.AirBuddyHelper",
|
||||
@@ -1237,9 +1146,7 @@
|
||||
"bridgeFile": "/Contents/MacOS/",
|
||||
"injectFile": "AirBuddyHelper",
|
||||
"needCopyToAppDir": true,
|
||||
"tccutil": [
|
||||
"All"
|
||||
]
|
||||
"tccutil": ["All"]
|
||||
},
|
||||
{
|
||||
"packageName": "com.apphousekitchen.aldente-pro",
|
||||
@@ -1248,27 +1155,21 @@
|
||||
"noSignTarget": true,
|
||||
"autoHandleHelper": true,
|
||||
"helperFile": "/Contents/Library/LaunchServices/com.apphousekitchen.aldente-pro.helper",
|
||||
"tccutil": [
|
||||
"All"
|
||||
]
|
||||
"tccutil": ["All"]
|
||||
},
|
||||
{
|
||||
"packageName": "com.mac.utility.media.hub",
|
||||
"bridgeFile": "/Contents/MacOS/",
|
||||
"injectFile": "MediaCenter",
|
||||
"needCopyToAppDir": true,
|
||||
"tccutil": [
|
||||
"All"
|
||||
]
|
||||
"tccutil": ["All"]
|
||||
},
|
||||
{
|
||||
"packageName": "com.onmyway133.PastePal",
|
||||
"needCopyToAppDir": true,
|
||||
"deepSignApp": true,
|
||||
"injectFile": "Sparkle.framework/Versions/B/Sparkle",
|
||||
"tccutil": [
|
||||
"All"
|
||||
]
|
||||
"tccutil": ["All"]
|
||||
},
|
||||
{
|
||||
"packageName": "com.bjango.istatmenus",
|
||||
@@ -1284,4 +1185,4 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
5
main.py
5
main.py
@@ -227,6 +227,8 @@ def main():
|
||||
keygen = app.get("keygen")
|
||||
useOptool = app.get("useOptool")
|
||||
helperNoInject = app.get("helperNoInject")
|
||||
# forceSignMainExecute
|
||||
forceSignMainExecute = app.get("forceSignMainExecute")
|
||||
|
||||
local_app = [
|
||||
local_app
|
||||
@@ -412,6 +414,9 @@ def main():
|
||||
if deep_sign_app:
|
||||
subprocess.run(f"{sign_prefix} '{app_base_locate}'", shell=True)
|
||||
|
||||
if forceSignMainExecute:
|
||||
subprocess.run(f"cp '{dest}' /tmp/test && codesign -fs - /tmp/test && cp /tmp/test '{dest}'", shell=True)
|
||||
|
||||
subprocess.run(f"sudo xattr -cr '{dest}'", shell=True)
|
||||
if auto_handle_helper and helper_file:
|
||||
helpers = []
|
||||
|
||||
Reference in New Issue
Block a user