(bundle_dir, platform, options)
| 628 | create_dmg(bundle_dir, options, platform) |
| 629 | |
| 630 | def 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 | |
| 645 | def find_files(root_dir, file_pattern): |
| 646 | matches = [] |
no test coverage detected