Opened 7 years ago
Closed 3 years ago
#1880 closed enhancement (fixed)
Have macOS installer dmg show arrow to drag ChimeraX to Applications
Reported by: | Tom Goddard | Owned by: | Zach Pearson |
---|---|---|---|
Priority: | moderate | Milestone: | |
Component: | Build System | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
At the ChimeraX microscopy tutorial I found another user running ChimeraX from the dmg, asking me why it has to verify the dmg every time they run ChimeraX.
We should have the dmg show the ChimeraX icon and an arrow to drag it to the Applications folder. This is a standard mac dmg install approach.
Change History (5)
comment:1 by , 6 years ago
Owner: | removed |
---|---|
Priority: | moderate → minor |
comment:2 by , 6 years ago
Owner: | set to |
---|---|
Priority: | minor → moderate |
The approach used by this Makefile seems reasonable.
https://github.com/remko/fancy-dmg/blob/master/Makefile
Basically you make a template dmg image which has the icons and background arrow image positioned manually. Then you copy in the actual ChimeraX.app into a copy of the template and compress it to form the final dmg.
comment:3 by , 3 years ago
Owner: | changed from | to
---|
comment:4 by , 3 years ago
This will require modifying create_dmg in build_tools/macosx_package/notarize.py, which creates the dmg on the fly from a built ChimeraX.
From stackoverflow, the solution seems to be to create a template DMG, then make a copy of it and mount it. Then, copy the built application into the mounted DMG. Finally, unmount it compress it with hdiutil.
comment:5 by , 3 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I installed the Python package dmgbuild on the Mac build machines and modified the build script to use it, then tested with a Mac Intel build. All of tomorrow's Mac builds should have the new format: an RBVI banner taken from our website, and a background that places an arrow with the text "Drag to Install" on top between ChimeraX and a symbolic link to /Applications.
https://stackoverflow.com/questions/8680132/creating-nice-dmg-installer-for-mac-os-x
describes some ways of doing this. I really don't have time for it and don't consider it very high priority, so someone else should pick it up.