Skip to content

Commit

Permalink
more fixes for the installer, refs #15213
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertHilbrich committed Jan 27, 2025
1 parent cbd6bf8 commit 8ad4875
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/build_config/buildMacOSInstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,11 +540,14 @@ def main():
print(f" - Created \"{pkg_name}\" ({pkg_size / (1024 * 1024):.2f} MB)")

elif opts.create_installer_pkg:
if not os.path.exists(os.path.dirname(opts.installer_pkg_file)):
print(f"Error: pkg output directory '{os.path.dirname(opts.installer_pkg_file)}' does not exist.",
if os.path.exists(os.path.dirname(opts.installer_pkg_file)):
print(f"Error: pkg output directory '{os.path.dirname(opts.installer_pkg_file)}' exists.",
file=sys.stderr)
sys.exit(1)

# Create the output directory for the installer pkg
os.makedirs(os.path.dirname(opts.installer_pkg_file))

print("Building installer pkg file")
# Where do we find our pkgs?
fw_pkg = [os.path.join(opts.framework_pkg_dir, f"{default_framework_name}-{version}.pkg"),
Expand Down

0 comments on commit 8ad4875

Please sign in to comment.