-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no way to build pkg that doesn't require admin install #1685
Comments
Thanks for clear report — decided to fix but not move to backlog :) |
Hmmm, it seems to be only halfway working... Looks like you need to remove the I was able to use Oh, and in case anyone else reads this comment, the proper way to invoke the
This was really poorly documented - many places incorrectly say you can use Note: be sure to |
@p120ph37 Thanks, fixed in 19.6.0. |
@develar can u tell me how to config so that I can install pkg file not need to input PWD |
The inner pkg file is generated with
<pkg-info auth="root" />
inside itsPackageInfo
. This causes the resultant outer product installer to prompt for elevated privileges in order to complete installation.If the default installation location is
/Applications
, that makes sense since it is not generally user-writable, however installation to~/Applications
should be possible without elevated permission.This also has the side-effect that running
installer -pkg myapp-1.0.0.pkg -target /
will fail with the messageinstaller: Must be run as root to install this package.
if not run undersudo
.I'd like to see some
package.json
options like the NSIS target has (perMachine
), which can enable non-admin install to the user-level directory. I'm not sure exactly how to suppress theauth="root"
setting inPackageInfo
- it might require an expand/flatten of the pkg file usingpkgutil
to edit that file, as I can't seem to find anywhere in thedistribution.xml
that would control that.The text was updated successfully, but these errors were encountered: