diff --git a/bin/codesign_xpc b/bin/codesign_embedded_executable similarity index 81% rename from bin/codesign_xpc rename to bin/codesign_embedded_executable index 772a677d..2337949a 100755 --- a/bin/codesign_xpc +++ b/bin/codesign_embedded_executable @@ -32,15 +32,15 @@ def codesign_service(service_name, identity, path, entitlements_path=None): if __name__ == "__main__": if len(sys.argv) < 3: - log_message("Usage:\n\t%s code-signing-identity xpc-service xpc-service2 ..." % (sys.argv[0])) + log_message("Usage:\n\t%s code-signing-identity executable1 executable1 ..." % (sys.argv[0])) log_message("Example:\n\t%s \"Developer ID Application\" ./XPCServices/*.xpc" % (sys.argv[0])) sys.exit(1) signing_identity = sys.argv[1] - xpc_services = sys.argv[2:] + executables = sys.argv[2:] - for xpc_service in xpc_services: - parent, child = os.path.split(xpc_service) + for executable in executables: + parent, child = os.path.split(executable) service_name = os.path.splitext(child)[0] entitlements_path = os.path.join(parent, service_name + ".entitlements") - codesign_service(service_name, signing_identity, xpc_service, None if not os.path.exists(entitlements_path) else entitlements_path) + codesign_service(service_name, signing_identity, executable, None if not os.path.exists(entitlements_path) else entitlements_path)