Hi all,
I have been doing quite a bit of research into this little rub. The developer of this app has decided that the plugin's assailable to extend the functionality should live in ~/Library/Application\ Support/<annoyingApp/modules. Every time they ev the app, they rev the plugins. (A good thing mostly) but the app expects the plugins in that directory.
So, I want to use the luggage to create a .pkg file suitable for an update_for key in munki so the current lug in gets installed anytime the app is updated.
Getting a pkg to install into the currently logged in users Library is not as easy as I thought it would be.
I created an initial make file to play with and so far I haven't been successful in getting it to work. I've used tabs instead of spaces. and used double quotes ind then forward slashes in path names to escape spaces. I guessed at the ${USER} variable. I am sure there are LARGE gaps in my knowledge that are the root cause.
Any advice or comment would be most welcome!
Make file included below. Please note I have replaced the actual app name with "<annoyingApp>". In the actual make file I use the app or directory name as it exists in the file system. The plugin name is correct.
USE_PKGBUILD=1
include /usr/local/share/luggage/luggage.make
TITLE=MagentoRS_Plugin
REVERSE_DOMAIN=com.superslickcompany
PAYLOAD=\
pack-Users-craig-Library-Application\ Support-<annoyingApp>-modules-MagentoModule-3.rsmod\
pack-Users-craig-Library-Application\ Support-<annoyingApp>-modules-MagentoModule-3.rsmod:l_Users_craig_Library_Application\ Support_<annoyingApp>_modules
@sudo ${CP} ./Magento Module-3.rsmod ${WORK_D}/Users/craig/Library/Application Support/<annoyingApp>/modules
@sudo chmod 755 ${WORK_D}/Users/craigLibrary/Application\ Support/<annoyingApp>/modules/Magento Module-3.rsmod
@sudo chown craig:staff ${WORK_D}/Users/craig/Library/Application Support/<annoyingApp>/modules/Magento Module-3.rsmod
Error returned by make:
$ make pkg
make -e pack-Users-craig-Library-Application\ Support-<annoyingApp>-modules-MagentoModule-3.rsmod
make[1]: *** No rule to make target `l_Users_craig_Library_Application Support_<annoyingApp>_modules_MagentoModule-3.rsmod', needed by `pack-Users-craig-Library-Application Support-<annoyingApp>-modules-MagentoModule-3.rsmod'. Stop.
make: *** [payload] Error 2
Eventually I would like to use a variable to copy the plugin to the current users folder. Is something like $USER to perhaps a double dot available in path names?
Again, thank you for having a look.