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 set configuration? #72

Open
sajadabedi opened this issue Mar 28, 2016 · 5 comments
Open

How set configuration? #72

sajadabedi opened this issue Mar 28, 2016 · 5 comments

Comments

@sajadabedi
Copy link

Hi.
in document :

Configuration is possible via Meteor.settings.electron

But where do i create this file? and need any file extension eg json or js?
Thank you.

@rdickert
Copy link
Contributor

Just make a file called settings.json in your app root directory, paste in the settings as shown in the readme, and alter the json to reflect your app settings. You should then run the app with meteor --settings settings.json to have Meteor read your file.

@DivXZero
Copy link

I have attempted to create the Meteor.settings.electron file as well as the settings.json file as rdickert describes above, but I am met with "You must specify at least one build in Meteor.settings.electron". I am unable to find any information on where this file should be created, or what fields are required (such as build).

@p3140
Copy link

p3140 commented May 17, 2016

Create the file settings.json in the root of your app. My settings look like this:
{ "electron": { "name": "MyApp", "title": "MyApp", "icon": { "darwin": "client/myapp.icns", "win32": "client/myapp.ico" }, "version": "0.1.0", "description": "A really cool app.", "height": 768, "width": 1024, "frame": true, "resizable": true, "runOnStartup": false } }
then run meteor with meteor --settings settings.json

@wallynm
Copy link

wallynm commented Jul 27, 2016

Hey guys, readme.md should be updated
@rdickert solution worked correctly but it isn't documented leading to missunderstood.
Thanks!

@rdickert
Copy link
Contributor

@wallynm great idea. I'll bet the repo owners would take a PR on the readme - might be a simple copy/paste :)

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

5 participants