Packing a Safari Extension (.safariextz)

102 views
Skip to first unread message

Jeremy Martinez

unread,
Mar 12, 2014, 3:17:57 PM3/12/14
to the-l...@googlegroups.com
I have a launchAgent that calls a script to copy a safari extension to the Users Safari folder.
I have it all working and now want to pkg it all up, without using Composer. I have done a lot of work with Luggage but this is stumping me so any help will be appreciated.

my make file is as follows

include /usr/local/share/luggage/luggage.make

TITLE=Okta_Safari_Extension
REVERSE_DOMAIN=edu.riverdale
PAYLOAD=\
pack-oktaSafariExtension.sh \
pack-Library-LaunchAgents-edu.riverdale.oktaSafariExtension.plist \
pack-"Okta Secure Web Authentication Plug-in.safariextz"
PACKAGE_VERSION=3.16.4

pack-oktaSafariExtension.sh: l_etc_hooks
@sudo mkdir ${WORK_D}/etc
@sudo mkdir ${WORK_D}/etc/hooks
@sudo ${CP} oktaSafariExtension.sh ${WORK_D}/etc/hooks
@sudo chown root:wheel ${WORK_D}/etc/hooks/oktaSafariExtension.sh
@sudo chmod 755 ${WORK_D}/etc/hooks/oktaSafariExtension.sh
@sudo chmod +x ${WORK_D}/etc/hooks/oktaSafariExtension.sh

pack-"Okta Secure Web Authentication Plug-in.safariextz": l_etc_hooks
@sudo ${CP} "Okta Secure Web Authentication Plug-in.safariextz" ${WORK_D}/etc/hooks
@sudo chown root:wheel ${WORK_D}/etc/hooks/"Okta Secure Web Authentication Plug-in.safariextz"
@sudo chmod 755 ${WORK_D}/etc/hooks/"Okta Secure Web Authentication Plug-in.safariextz"

when i do this I get the following error:

jamBookPro-5:Okta - Safari jam$ make dmg

make pack-oktaSafariExtension.sh pack-Library-LaunchAgents-edu.riverdale.oktaSafariExtension.plist pack-"Okta Secure Web Authentication Plug-in.safariextz"

make[1]: *** No rule to make target `pack-Okta Secure Web Authentication Plug-in.safariextz'.  Stop.

make: *** [payload] Error 2


Any Suggestions? I want to copy it to etc/hooks but as long as I can copy it to somewhere that is not obvious to a user thats fine. I attached a copy of my working directory for this makefile if anyone wants to see.

thanks in advanced.

Jeremy

Okta - Safari.zip

Vaughn Miller

unread,
Mar 12, 2014, 6:19:53 PM3/12/14
to the-l...@googlegroups.com
I'm pretty sure it is the spaces in this line :


pack-"Okta Secure Web Authentication Plug-in.safariextz"

I recall having a similar problem, but I couldn't find a Makefile in my collection that had an example of this.  Going by this thread https://groups.google.com/forum/#!topic/the-luggage/SnJtRggtSfs  you may want to try something like this :

"pack-Okta\\ Secure\\ Web\\ Authentication Plug-in.safariextz"

Vaughn Miller
Desktop Engineer
Lafayette College
Easton PA


--
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.

Geordie Korper

unread,
Mar 12, 2014, 7:28:24 PM3/12/14
to the-l...@googlegroups.com
Or just use something that is less of a hassle like pack-owsa

Sent from my iPhone

Jeremy Martinez

unread,
Mar 13, 2014, 11:37:41 AM3/13/14
to the-l...@googlegroups.com
Thanks guys. I didnt know putting in a backslash would work. i had to put it in every instance of the file name in the makefile. it all works now.
Reply all
Reply to author
Forward
0 new messages