diff options
author | fanquake <fanquake@gmail.com> | 2022-01-05 12:53:23 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-04-05 14:49:32 +0100 |
commit | 3d415215699e718b3f6eea6e3c9fb2948476f930 (patch) | |
tree | e587a4361669894ad3e45537290b9cbb59bc947b /contrib/macdeploy/macdeployqtplus | |
parent | dac693671928aa3fc304e6a802abfffb2f4ec8fd (diff) |
build: perform /Applications symlink generation in macdeployqtplus
By generating the symlink earlier in the macdeploy process, we can unify the
logic in the deploy script.
Diffstat (limited to 'contrib/macdeploy/macdeployqtplus')
-rwxr-xr-x | contrib/macdeploy/macdeployqtplus | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/contrib/macdeploy/macdeployqtplus b/contrib/macdeploy/macdeployqtplus index e1d6f28eab..cc24e0317b 100755 --- a/contrib/macdeploy/macdeployqtplus +++ b/contrib/macdeploy/macdeployqtplus @@ -554,6 +554,12 @@ shutil.copy2(tiff_path, bg_path) # ------------------------------------------------ +print("+ Generating symlink for /Applications +") + +os.symlink("/Applications", os.path.join('dist', "Applications")) + +# ------------------------------------------------ + if config.dmg is not None: print("+ Preparing .dmg disk image +") @@ -577,11 +583,6 @@ if config.dmg is not None: print("Attaching temp image...") output = run(["hdiutil", "attach", tempname, "-readwrite"], check=True, universal_newlines=True, stdout=PIPE).stdout - m = re.search(r"/Volumes/(.+$)", output) - disk_root = m.group(0) - - os.symlink("/Applications", os.path.join(disk_root, "Applications")) - print("+ Finalizing .dmg disk image +") run(["hdiutil", "detach", f"/Volumes/{appname}"], universal_newlines=True) |