Skip to content

Instantly share code, notes, and snippets.

@unixorn
Created August 31, 2012 00:37
Show Gist options
  • Save unixorn/3546596 to your computer and use it in GitHub Desktop.
Save unixorn/3546596 to your computer and use it in GitHub Desktop.
Use pkgbuild with the Luggage
compile_package: payload modify_packageroot
@-sudo rm -fr ${PAYLOAD_D}/${PACKAGE_FILE}
@echo "Creating ${PAYLOAD_D}/${PACKAGE_FILE} with pkgbuild"
@sudo pkgbuild --root ${WORK_D} \
--identifier ${PACKAGE_ID} \
--ownership preserve \
--version ${PACKAGE_VERSION} \
--scripts ${SCRIPT_D} \
${PAYLOAD_D}/${PACKAGE_FILE}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment