Adding files to a dmg and redistribute it
Purpose :
Adding some settings files to firefox.dmg (mozilla.cfg and policies.json) in the objective of redistributing the modified dmg
How the dmg is modified :
- Decompressing the dmg with tools like (hdiutils/ultraiso/transmac/dropdmg/disk-utilities)
- Mounting and adding files to the decompressed dmg
- Optional (recompress the dmg with same utils used to decompress)
Issue :
Opening the new dmg in a different machine give the result "firefox" is damaged and can't be opened, you should move it to trash
What was tested :
- Removing
com.apple.quarantine
attribute with the commandxattr -c
works but its not a reliable solution - Tried to remove
_CodeSignature
directories from the dmg without success - Creating a new dmg containing files of the previous one without success
- Tried to edit Info.plist without success
Question :
How to make the new dmg package usable in other machines ? (How to avoid the error from gatekeeper without using xattr -c
)