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

How to center window and make give it focus on macOS? #109

Closed
NetOpWibby opened this issue May 20, 2018 · 5 comments
Closed

How to center window and make give it focus on macOS? #109

NetOpWibby opened this issue May 20, 2018 · 5 comments

Comments

@NetOpWibby
Copy link

I'm looking through the examples for examples of such but have not found it.

Thanks for this incredible library btw, native desktop apps are within my reach now.

@parro-it
Copy link
Owner

You have to pack your command in an app folder.
This will be done automatically using proton-packager in future release.

You can see an example here:

https://github.com/parro-it/libui-node/blob/master/examples/ControlGallery.app/Contents/MacOS/ControlGallery

But until we solve #67, remember to change the paths there to your own.

Thanks for this incredible library btw, native desktop apps are within my reach now.

Thank you! You make my day!

@NetOpWibby
Copy link
Author

Ah, is it possible for what I want to be achieved when working via Terminal?

@parro-it
Copy link
Owner

Ah, is it possible for what I want to be achieved when working via Terminal?

Yes, you can use

$ open <path/to/your/folder.app>

And that should open your app, focused, from the terminal.

@mischnic
Copy link
Collaborator

This will be done automatically using proton-packager in future release.

electron-builder. Once electron-userland/electron-builder#2903 is resolved.

@parro-it
Copy link
Owner

Oh yes, sorry

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

No branches or pull requests

3 participants