Giter Club home page Giter Club logo

Comments (5)

frankhale avatar frankhale commented on May 24, 2024

See #9 for info on how to make electron-builder work.

from electron-with-express.

frankhale avatar frankhale commented on May 24, 2024

#9 (comment)

from electron-with-express.

frankhale avatar frankhale commented on May 24, 2024

Yeah I know that issue is for electron-packager but it's also using a single ASAR file. Basically you don't use the external node process like the others. You replace that with Electron and start up Electron in it's node mode (no UI). The instructions in comment 9 pasted above should work.

from electron-with-express.

isurendrasingh avatar isurendrasingh commented on May 24, 2024

I tried what you said but getting this error

module.js:545 
throw err; 
^ 

Error: Cannot find module 'http-errors' 
at Function.Module._resolveFilename (module.js:543:15) 
at Function.Module._load (module.js:473:25) 
at Module.require (module.js:586:17) 
at require (internal/module.js:11:18) 
at Object. (C:\Users\Surendra\AppData\Local\Programs\Creast\resources\app.asar\express-app\app.js:1:174) 
at Object. (C:\Users\Surendra\AppData\Local\Programs\Creast\resources\app.asar\express-app\app.js:56:3) 
at Module._compile (module.js:642:30) 
at Object.Module._extensions..js (module.js:653:10) 
at Module.load (module.js:561:32) 
at tryModuleLoad (module.js:504:12) 

And when using electron-packager no errors

from electron-with-express.

frankhale avatar frankhale commented on May 24, 2024

To be honest electron-builder and electron-packager are beyond the scope of this project. This is a demonstration project which demonstrates one way to do things and the assumption at the time and still even now is that all files will be on the file system and not packaged into an .asar. I never liked the .asar approach as it complicates things and some things simply won't work.

That said I did help out on the electron-packager scenario but I don't know if I have the interest or time to devote to electron-builder as it's not something I use.

I'm going to close this for now. If somebody in the community wants to provide some information on how to do this I'd be more than happy to get a pull request with that information.

from electron-with-express.

Related Issues (20)

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.