abra-code / OMC

OnMyCommand
http://www.abracode.com/free/cmworkshop/on_my_command.html
MIT License
33 stars 5 forks source link

Add support for external Frameworks folder next to applets #7

Closed abra-code closed 5 years ago

abra-code commented 5 years ago

As of OMC 4.0 Abracode.framework is relocatable. It can be embedded in applet bundle in Applet.app/Contents/Frameworks or can be installed for all users in /Library/Frameworks Each method has its advantages and disadvantages. When embedded in an app:

When installed in /Library/Frameworks:

The idea is to support a 3rd location, which would allow updating all apps at the same time, keep them small (only a single copy of Abracode.framework) and not force each user to go though a painful installation in global location. The on-disk hierarchy would be: Applets/AppletA.app Applets/AppletB.app Applets/Frameworks/Abracode.framework

The order of finding Abracode.framework by OMC 4.0 Applets would be: Applets/Applet.app/Contents/Abracode.framework Applets/Frameworks/Abracode.framework /Library/Frameworks/Abracode.framework

abra-code commented 5 years ago

Fixed with submission: https://github.com/abra-code/OMC/commit/5822887731231ecc0de07072376832809377e9ac