We have multiple macOS applications (non sandboxed) that share a lot of core frameworks. So if the user installs two of our apps, there are essentially duplicate copies of the same frameworks inside the app bundles. This duplication can cost the user around 450 MB.
Is there an apple recommended way to avoid duplication in such scenarios?
One approach would be to install the common frameworks in a location like /Library/Application Support/MyCompany/Shared Frameworks/ and then add this to the rpath of all the applications, but I am not sure if this will work after signing and notarization.
Note - These apps are not distributed through the app store and are not sandboxed.
Is there an apple recommended way to avoid duplication in such scenarios?
One approach would be to install the common frameworks in a location like /Library/Application Support/MyCompany/Shared Frameworks/ and then add this to the rpath of all the applications, but I am not sure if this will work after signing and notarization.
Note - These apps are not distributed through the app store and are not sandboxed.
It would be better to install them into /Library/Frameworks. That is a standard location and you wouldn't have to do anything to any rpaths. You can still sign and notarize. You would just have to sign the individual frameworks and the apps. Then notarize the installer pkg that installs them all.
It would be nice if you included an uninstaller too.
It would be nice if you included an uninstaller too.