From abe97ed0cbd5a2b5ffda6ebdb486d3bff9170964 Mon Sep 17 00:00:00 2001 From: dayu <506228475@qq.com> Date: Wed, 21 Oct 2026 20:19:48 +0800 Subject: [PATCH] Unregister generated plug-in immediately after Release build before notarization --- scripts/deliver.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/deliver.py b/scripts/deliver.py index 22cdde5..b20e214 100755 --- a/scripts/deliver.py +++ b/scripts/deliver.py @@ -78,6 +78,9 @@ try: print('Building universal Release…',flush=True) run(['xcodebuild','-project','beatygril/beatygril.xcodeproj','-scheme','Wrapper Application','-configuration','Release','-derivedDataPath',str(staging),'-destination','generic/platform=macOS','build'],logs/'build.log') plugin=app/'Contents/PlugIns/beatygril XPC Service.pluginkit' + # Xcode can register a fresh build. Remove this known generated path before + # lengthy signing/notarization while a user may still be testing the old app. + run(['pluginkit','-r',str(plugin)]) for framework in sorted((plugin/'Contents/Frameworks').glob('*.framework')): run(['codesign','--force','--timestamp','--options','runtime','--sign',identity,str(framework)]) run(['codesign','--force','--timestamp','--options','runtime','--sign',identity,str(plugin)])