I rebuild an existing pkg with productbuild.
My root path looks like this: ROOT > Applications/Scripts/Library/private/
In Applications/ is my .app , which works. However in Library for example is another folder "Desktop Pictures" and there is a background.png. I would like to have that exact path with the .png on the device that i install this package, so i can use it later for automatically set the background.
Not working tho
This is how the first pkg gets build:
pkgbuild --root "ROOT" \
--identifier "${IDENTIFIER}" \
--install-location "/" \
"${PACKAGE_NAME}_before.pkg"
this is how i rebuild it
productbuild \
--distribution distribution.dist \
--scripts "ROOT/Scripts" \
--sign "${IDENTITY}" \
--package-path "${PACKAGE_NAME}_before.pkg" \
"${PACKAGE_NAME}.pkg"