Skip to content
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

macOS pkg installer #52

Closed
sunnyrjuneja opened this issue Oct 26, 2015 · 9 comments · May be fixed by qcif/data-curator#563
Closed

macOS pkg installer #52

sunnyrjuneja opened this issue Oct 26, 2015 · 9 comments · May be fixed by qcif/data-curator#563

Comments

@sunnyrjuneja
Copy link

I'm writing a GUI application that requires root permissions to modify /etc/hosts. Based on the following issue, I found myself here:
electron/packager#87

Is it possible use this installer to ask for administrative permissions? I personally only need to suport OS X.

I believe that this would be a great feature. I've seen it asked for in the following places (without a satisfactory solution):
https://discuss.atom.io/t/performing-actions-that-require-superuser-privileges/16892
https://discuss.atom.io/t/start-application-with-root/18815

@stefanjudis
Copy link
Contributor

Honestly I've got no idea about that.

But as we simply using /~https://github.com/LinusU/node-appdmg here - you might want to ask there? :bowtie:

@sunnyrjuneja
Copy link
Author

Cool, would you like me to close the issue @stefanjudis ?

@stefanjudis
Copy link
Contributor

Let's keep it and link it to the issue over there then. :)

@stefanjudis
Copy link
Contributor

@whatasunnyday

As far as I see ( LinusU/node-appdmg#73 ) - achieving this is not possible here at all.

We maybe will offer to create real installer someday though. :bowtie:

@stefanjudis
Copy link
Contributor

@whatasunnyday I think we can close this one here.
Feel free to reopen if needen.

Creating real installers feels a bit like overhead for me now. :bowtie:

@creeperyang
Copy link

real installer is a useful feature.

I'm writing a hosts switcher and also need to write to /etc/hosts. Currently I use electron-sudo as an alternative.

@develar
Copy link
Member

develar commented Jul 16, 2016

I don't like pkg and don't recommend it. Do any init logic on first start. Even, even docker app for Mac is a just DMG. It is better for users. I don't say that we will never support it, but for now I don't see any reason to implement it.

@develar
Copy link
Member

develar commented Nov 4, 2016

Reopened — #874 (comment)

pkg will be first-class target.

@develar develar changed the title Installing with Administrative Permissions macOS pkg installer Nov 6, 2016
@develar
Copy link
Member

develar commented Nov 6, 2016

Initial implementation will be pushed soon. Do not think that #52 (comment) is not actual or changed. Use pkg only if you understand what is it and for what.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants