What's new

Question about a background image for dmg creation?

Helmuts

Pivian
Good morning,

Can I ask about the background image alias for the dmg creation?

It looks like it is encoded. How is it generated, please?

Ref: https://github.com/PIVX-Project/PIVX/blob/master/contrib/macdeploy/custom_dsstore.py

to be more detailed: line #29 that is called in #42

It is again referenced at https://github.com/PIVX-Project/PIVX/blob/master/contrib/macdeploy/macdeployqtplus (lines #619)

Thank you in advance!
Best wishes,
Helmuts

Screenshot 2023-03-21 at 08.24.36.png
 
The backgroundImageAlias field in a dmg (disk image) creation specifies the location of the background image that is displayed when the dmg is opened.

In the code snippet you provided, the backgroundImageAlias field is represented by a series of bytes. The first few bytes represent the file type and format of the image, followed by the path to the image file. In this case, the path is "background.tiff" and it is located in the ".background" folder within the dmg.

The remaining bytes represent various attributes and settings related to the background image, such as its size, position, and transparency. These attributes are used by the operating system to display the background image correctly within the dmg.
 
Top