From 57c023f4982fda8a909b8b38896dce9f00c5b3d8 Mon Sep 17 00:00:00 2001 From: Marc Culler Date: Tue, 3 Dec 2024 21:48:26 -0600 Subject: [PATCH] One more cleanup item. --- macOS_app/release.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/macOS_app/release.py b/macOS_app/release.py index 08776505..8089bd43 100755 --- a/macOS_app/release.py +++ b/macOS_app/release.py @@ -75,8 +75,12 @@ def cleanup_app(python): resources = os.path.join(contents, 'Resources') python_lib_dir = os.path.join(frameworks, 'Python.framework', 'Versions', 'Current', 'lib', python) - # Remove the python in the MacOS directory + # There are two useless files that break notarization on the CI runner. + # Remove the useless python in the MacOS directory os.unlink(os.path.join(contents, 'MacOS', 'python')) + # Remove the useless zlib extension module in the Resources directory + extra_zlib = glob('dist/SnapPy.app/Contents/Resources/zlib*')[0] + os.unlink(extra_zlib) # Remove the dev directory dev_directory = os.path.join(resources, 'lib', python, 'snappy', 'dev') shutil.rmtree(dev_directory, ignore_errors=True)