Comments (5)
Atom works around this by putting its build modules in a separate folder (i.e. build/node_modules
for all the grunt tasks, node_modules
for what goes in the app). This also has the benefit of not ending up shipping Grunt tasks in your packaged binary
from grunt-download-electron.
In our setup, 'asar' is simply a packaging setup and should not go into the final binary either. In fact, I had wanted to use the 'grunt-asar' task, but that suffers from the same problem.
I suppose I could separate that 'build/download' step from the 'build/package' step in the directory structure and use something like the command
module to execute them...
What does the rebuilding of the modules vs the latest chromium provide? Does it make sense to only rebuild the dependencies, and not the devDependencies?
from grunt-download-electron.
What does the rebuilding of the modules vs the latest chromium provide?
It makes the modules loadable in Electron, otherwise you'd get the same error you're seeing now, only backwards
from grunt-download-electron.
I have experienced this issue with grunt-asar
.
- https://github.com/melonjs/boilerplate/blob/c60c893b4842fa02a9bef2a0cb3f33ef271073d8/Gruntfile.js#L138
- https://github.com/melonjs/boilerplate/blob/02e324276d7ae8819d061f01d34925177baa7f3c/package.json
The dependencies in package.json are all build dependencies (there are no app dependencies). So I don't understand how to apply the recommendation to separate build modules from app modules in this case. My asar
task simply creates the archive in the appropriate Electron directory.
Any other tips?
from grunt-download-electron.
A workaround for me is setting the rebuild: false
task option. Of course, this will cause native app dependencies to install incorrectly...
from grunt-download-electron.
Related Issues (19)
- Explain why rebuild is needed HOT 7
- Format for filename changed? HOT 2
- v0.8.0 fails to install atom-shell < v0.13.0 due to missing 'arch' in release filename HOT 1
- spawn ENOENT on OSX HOT 11
- use node-pre-gyp + npm HOT 2
- Fatal error: CERT_UNTRUSTED HOT 5
- Not downloading atom-shell HOT 5
- Cannot unzip under windows with node v0.11.x
- cannot find atom-shell in download-atom-shell task
- download fails because repository changed atom/atom-shell to atom/electon HOT 4
- Unable to download atom-shell releases. HOT 4
- Task creates Atom.app, should it be Electron.app? HOT 2
- "Cannot find electron v0.22.1 from GitHub null" 'warning' HOT 4
- Unable to dowload a 64 bit version for a Windows 64 bit machine HOT 1
- Cross-platform downloads HOT 2
- Atom / Debian issues HOT 1
- Atom Shell downloaded as non-executable HOT 2
- Download broken for latest (v0.13.0) atom-shell release HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-download-electron.