From b394d7a958767f48567fc7611be12745b0627f6b Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Sat, 17 May 2025 02:34:15 +0800 Subject: [PATCH] Cleanup --- WORKSPACE | 112 ------------------------ build-system/Make/BuildConfiguration.py | 8 +- 2 files changed, 7 insertions(+), 113 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 44c89b9780..e69de29bb2 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -1,112 +0,0 @@ -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file") - -http_archive( - name = "bazel_features", - sha256 = "bdc12fcbe6076180d835c9dd5b3685d509966191760a0eb10b276025fcb76158", - strip_prefix = "bazel_features-1.17.0", - url = "https://github.com/bazel-contrib/bazel_features/releases/download/v1.17.0/bazel_features-v1.17.0.tar.gz", -) - -local_repository( - name = "rules_xcodeproj", - path = "build-system/bazel-rules/rules_xcodeproj", -) - -local_repository( - name = "build_bazel_rules_apple", - path = "build-system/bazel-rules/rules_apple", -) - -local_repository( - name = "build_bazel_rules_swift", - path = "build-system/bazel-rules/rules_swift", -) - -local_repository( - name = "build_bazel_apple_support", - path = "build-system/bazel-rules/apple_support", -) - -http_file( - name = "cmake_tar_gz", - urls = ["https://github.com/Kitware/CMake/releases/download/v3.23.1/cmake-3.23.1-macos-universal.tar.gz"], - sha256 = "f794ed92ccb4e9b6619a77328f313497d7decf8fb7e047ba35a348b838e0e1e2", -) - -http_file( - name = "meson_tar_gz", - urls = ["https://github.com/mesonbuild/meson/releases/download/1.6.0/meson-1.6.0.tar.gz"], - sha256 = "999b65f21c03541cf11365489c1fad22e2418bb0c3d50ca61139f2eec09d5496", -) - -http_file( - name = "ninja-mac_zip", - urls = ["https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-mac.zip"], - sha256 = "89a287444b5b3e98f88a945afa50ce937b8ffd1dcc59c555ad9b1baf855298c9", -) - -http_file( - name = "flatbuffers_zip", - urls = ["https://github.com/google/flatbuffers/archive/refs/tags/v24.12.23.zip"], - sha256 = "c5cd6a605ff20350c7faa19d8eeb599df6117ea4aabd16ac58a7eb5ba82df4e7", -) - -http_archive( - name = "appcenter_sdk", - urls = ["https://github.com/microsoft/appcenter-sdk-apple/releases/download/4.1.1/AppCenter-SDK-Apple-4.1.1.zip"], - sha256 = "032907801dc7784744a1ca8fd40d3eecc34a2e27a93a4b3993f617cca204a9f3", - build_file = "@//third-party/AppCenter:AppCenter.BUILD", -) - -load( - "@rules_xcodeproj//xcodeproj:repositories.bzl", - "xcodeproj_rules_dependencies", -) - -xcodeproj_rules_dependencies() - -load("@bazel_features//:deps.bzl", "bazel_features_deps") - -bazel_features_deps() - -load( - "@build_bazel_rules_apple//apple:repositories.bzl", - "apple_rules_dependencies", -) - -apple_rules_dependencies() - -load( - "@build_bazel_rules_swift//swift:repositories.bzl", - "swift_rules_dependencies", -) - -swift_rules_dependencies() - -load( - "@build_bazel_rules_swift//swift:extras.bzl", - "swift_rules_extra_dependencies", -) - -swift_rules_extra_dependencies() - -load( - "@build_bazel_apple_support//lib:repositories.bzl", - "apple_support_dependencies", -) - -apple_support_dependencies() - -load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") - -bazel_skylib_workspace() - -load("@build_bazel_rules_apple//apple:apple.bzl", "provisioning_profile_repository") -provisioning_profile_repository( - name = "local_provisioning_profiles", -) - -local_repository( - name = "build_configuration", - path = "build-input/configuration-repository", -) diff --git a/build-system/Make/BuildConfiguration.py b/build-system/Make/BuildConfiguration.py index a61dbcdb81..bac732599f 100644 --- a/build-system/Make/BuildConfiguration.py +++ b/build-system/Make/BuildConfiguration.py @@ -106,7 +106,13 @@ def decrypt_codesigning_directory_recursively(source_base_path, destination_base destination_path = destination_base_path + '/' + file_name allowed_file_extensions = ['.mobileprovision', '.cer', '.p12'] if os.path.isfile(source_path) and any(source_path.endswith(ext) for ext in allowed_file_extensions): - decrypt_match_data(source_path, destination_path, password) + #print('Decrypting {} to {} with {}'.format(source_path, destination_path, password)) + os.system('ruby build-system/decrypt.rb "{password}" "{source_path}" "{destination_path}"'.format( + password=password, + source_path=source_path, + destination_path=destination_path + )) + #decrypt_match_data(source_path, destination_path, password) elif os.path.isdir(source_path): os.makedirs(destination_path, exist_ok=True) decrypt_codesigning_directory_recursively(source_path, destination_path, password)