From a59de4a8e2cacbd2f71320a3c3d4f1a5ff965a42 Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Sun, 14 Aug 2022 12:27:05 +0200 Subject: [PATCH] Fix not called lipo --- Tools/macos_lipo.py | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/Tools/macos_lipo.py b/Tools/macos_lipo.py index 124f5be6..6d691154 100644 --- a/Tools/macos_lipo.py +++ b/Tools/macos_lipo.py @@ -23,31 +23,9 @@ def listfiles(path): if Path(fname).suffix in extensions and not fname in ignored: file = path + os.path.join(dir, fname) if(os.path.isfile(file)): - #print(file) files.append(file) return files - -def create_fat_binary(): - # Make sure the script is always started from the same folder - root_path = Path.cwd() - if root_path.name == "Tools": - root_path = root_path.parent - print(f"Change root directory to: {root_path}") - os.chdir(root_path) - - arm64_dir = 'build-arm64-osx-release/bin/ScreenPlay.app' - x64_dir = "build-x64-osx-release/bin/ScreenPlay.app" - arm64_files = listfiles( - str(Path.joinpath(root_path, arm64_dir))) - x64_files = listfiles(str(Path.joinpath(root_path, x64_dir))) - - for file in arm64_files: - run(f"lipo -info {file}") - - # print(arm64_files) - # print(x64_files) - def run_lipo(): # Make sure the script is always started from the same folder root_path = Path.cwd() @@ -86,6 +64,5 @@ def check_fat_binary(): if __name__ == "__main__": - #run_lipo() + run_lipo() check_fat_binary() - #create_fat_binary()