Install plugin to ~/Library/AppSupport/...

79 views
Skip to first unread message

cr...@rocksolidit.net

unread,
Aug 18, 2014, 5:14:51 PM8/18/14
to the-l...@googlegroups.com
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.

Allister Banks

unread,
Aug 18, 2014, 5:22:15 PM8/18/14
to the-l...@googlegroups.com
Hey Mr. Craig,
Don't. Use a framework like scriptrunner or outset. 
Sorry to be brief, but this is the best way I can think of to target current and future homes. 
Allister
--
You received this message because you are subscribed to the Google Groups "The Luggage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to the-luggage...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gregory Neagle

unread,
Aug 18, 2014, 5:25:39 PM8/18/14
to the-l...@googlegroups.com
On Aug 18, 2014, at 2:14 PM, cr...@rocksolidit.net wrote:

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.

Plus it's a bad idea. Munki doesn't guarantee that it will install while there _is_ a currently logged in user.

Install the plugins somewhere else (Maybe /Library/Application\ Support/<annoyingApp>/modules) then have a script trigger by a LaunchAgent (see ScriptRunner or outset as recommended by Allister) either set up a symlink or make copies as necessary for <annoyingApp>.

-Greg


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.

cr...@rocksolidit.net

unread,
Aug 18, 2014, 5:44:17 PM8/18/14
to the-l...@googlegroups.com
Thanks Allistar & Greg!

Can I find them on Git?

-- Craig

Steve Yuroff

unread,
Aug 18, 2014, 6:33:12 PM8/18/14
to the-l...@googlegroups.com

Craig Lindsey

unread,
Aug 19, 2014, 4:23:56 PM8/19/14
to the-l...@googlegroups.com
Thank you! I used to do do stuff like this by adding to the apple OD bind script. It just has been a while since I used it and forgot about that method. You guys ROCK! Thank you!!

-- Craig

Sent from my iPhone
You received this message because you are subscribed to a topic in the Google Groups "The Luggage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/the-luggage/KciGrBmK9IQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to the-luggage...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages