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

Figure out how to load package.json without blowing up when releasing on OSX #45

Closed
officert opened this issue Dec 21, 2015 · 0 comments
Labels

Comments

@officert
Copy link
Owner

If you look at

https://github.com/officert/mongotron/blob/master/src/config/appConfig.js

you'll see our package.json is commented out:

// var packageJson = require('../../package.json');
var packageJson = {
  version: '1.0.0-alpha.1',
  name: 'Mongotron',
  repository: {
    url: 'https://github.com/mongotron'
  }
};

If you require the package.json file when running locally it works fine using a relative path. But if you package and release the app (using gulp-release-osx) you'll find that when you try and run you get a runtime error because electron can't find the file.

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

No branches or pull requests

1 participant