Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Cambra <claudio.cambra@gmail.com>2022-05-06 21:58:37 +0300
committerClaudio Cambra <claudio.cambra@gmail.com>2022-05-06 21:58:37 +0300
commit57601f523730daedae6bcfd02488e1db4e99d9a8 (patch)
tree04b7826a41598a9abfa882edd01978c1bbba4f2e
parent3a8aa8a2a88bc9b68098b7866e2a07aa23d3a33c (diff)
Make the make_universal.py script more verbose, make it easier to understand what is happeningfeature/verbose-make-universal
-rwxr-xr-xadmin/osx/make_universal.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/admin/osx/make_universal.py b/admin/osx/make_universal.py
index abc6e671f..b8f5a77af 100755
--- a/admin/osx/make_universal.py
+++ b/admin/osx/make_universal.py
@@ -68,15 +68,16 @@ if __name__ == "__main__":
# Now walk through the copied arm64 version and replace the binaries
for root, dirs, files in os.walk(universal_app_file):
for f in files:
- absoulte_file_path = os.path.join(root, f)
+ absolute_file_path = os.path.join(root, f)
root_relative = path_relative_to_package(universal_app_file, root)
x86_64_absolute_path = os.path.join(x86_64_app_file, root_relative, f)
arm64_absolute_path = os.path.join(arm64_app_file, root_relative, f)
- if os.path.islink(absoulte_file_path) or not is_executable(absoulte_file_path):
+ if os.path.islink(absolute_file_path) or not is_executable(absolute_file_path):
continue
try:
- execute(["lipo", "-create", "-output", absoulte_file_path, arm64_absolute_path, x86_64_absolute_path])
+ print(f"Goint to merge {arm64_absolute_path} and {x86_64_absolute_path} into {absolute_file_path}")
+ execute(["lipo", "-create", "-output", absolute_file_path, arm64_absolute_path, x86_64_absolute_path])
except:
- print("Could not merge {} with {} into {}!".format(arm64_absolute_path, x86_64_absolute_path, absoulte_file_path))
+ print(f"Could not merge {arm64_absolute_path} with {x86_64_absolute_path} into {absolute_file_path}!")
print("Finished :)")