Disabling bundle relocation.
If you need to override permissions or ownerships, override modify_packageroot in your Makefile
Creating /tmp/the_luggage/Desktop_Icon_Indie-20170124/payload/Desktop_Icon_Indie-20170124.pkg with /usr/bin/pkgbuild.
sudo /usr/bin/pkgbuild --root /tmp/the_luggage/Desktop_Icon_Indie-20170124/root \
--component-plist /tmp/the_luggage/Desktop_Icon_Indie-20170124/luggage.pkg.component.plist \
--identifier com.github.brrrink.Desktop_Icon_Indie \
--filter "/CVS$" --filter "/\.svn$" --filter "/\.cvsignore$" --filter "/\.cvspass$" --filter "/(\._)?\.DS_Store$" --filter "/\.git$" --filter "/\.gitignore$" \
--scripts /tmp/the_luggage/Desktop_Icon_Indie-20170124/scripts \
--version 20170124 \
--ownership preserve --quiet \
/tmp/the_luggage/Desktop_Icon_Indie-20170124/payload/Desktop_Icon_Indie-20170124.pkg
I've initiated the make with sudo (also installed with sudo, no difference)
The script is named postflight and is executable.
Makefile:
# Which interpreter to use to make the package, 1=pkgbuild, 0=packageMaker.
USE_PKGBUILD=1
# Include the default luggage tools
include /usr/local/share/luggage/luggage.make
#The title of the resulting installer
TITLE=Desktop_Icon_Indie
# Add new version numbers here
VERSION=1.0
# Reverse domain for the identifier, com.github.brrrink for example
REVERSE_DOMAIN=com.github.brrrink
# The payload, these locations are pre-built in luggage, see here: https://github.com/unixorn/luggage/wiki
PAYLOAD=\
pack-server\
pack-script
pack-server:
@sudo mkdir -p ${WORK_D}/Library/Management/Desktop_Icons
@sudo ${CP} Indie\ Server.afploc ${WORK_D}/Library/Management/Desktop_Icons/Indie\ Server.afploc
@sudo chmod -R 755 ${WORK_D}/Library/Management/Desktop_Icons
@sudo chown -R root:wheel ${WORK_D}/Library/Management/Desktop_Icons/
pack-script:
@sudo mkdir -p ${WORK_D}/usr/local/outset/login-once
@sudo ${CP} ./postinstall ${WORK_D}/usr/local/outset/login-once
@sudo chmod -R 755 ${WORK_D}/usr/local/outset/login-once/postinstall
@sudo chown -R root:wheel ${WORK_D}/usr/local/outset/login-once/postinstall
Thanks and best!
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks very much for your time
Oh I see, thanks for clarifying that. When searching the (non) issue I found a few post where people were not using sudo when initiating the make. My mistake. Can I ask when I should use ${install} vs ${CP} and changing ownership/permissions that way. Using ${INSTALL} worked where ${CP} didn't for me but I don't understand why it differs exactly.
Thanks very much for your time