MCPcopy Create free account
hub / github.com/defold/defold / sign

Function sign

editor/scripts/bundle.py:630–643  ·  view source on GitHub ↗
(bundle_dir, platform, options)

Source from the content-addressed store, hash-verified

628 create_dmg(bundle_dir, options, platform)
629
630def sign(bundle_dir, platform, options):
631 if platform_is_macos(platform):
632 # we need to sign the binaries in Resources folder manually as codesign of
633 # the *.app will not process files in Resources
634 jdk_dir = "jdk-%s" % java_version
635 jdk_path = os.path.join(bundle_dir, "Contents", "Resources", "packages", jdk_dir)
636 for exe in find_files(os.path.join(jdk_path, "bin"), "*"):
637 sign_file(platform, options, exe)
638 for lib in find_files(os.path.join(jdk_path, "lib"), "*.dylib"):
639 sign_file(platform, options, lib)
640 sign_file(platform, options, os.path.join(jdk_path, "lib", "jspawnhelper"))
641 sign_file(platform, options, bundle_dir)
642 elif platform_is_windows(platform):
643 sign_file(platform, options, os.path.join(bundle_dir, "Defold.exe"))
644
645def find_files(root_dir, file_pattern):
646 matches = []

Callers 1

create_bundleFunction · 0.70

Calls 4

platform_is_macosFunction · 0.85
find_filesFunction · 0.85
sign_fileFunction · 0.85
platform_is_windowsFunction · 0.85

Tested by

no test coverage detected