GithubHelp home page GithubHelp logo

Comments (5)

anaisbetts avatar anaisbetts commented on June 22, 2024

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.

simtel12 avatar simtel12 commented on June 22, 2024

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.

anaisbetts avatar anaisbetts commented on June 22, 2024

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.

parasyte avatar parasyte commented on June 22, 2024

I have experienced this issue with grunt-asar.

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.

parasyte avatar parasyte commented on June 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.