Comments (5)
See #9 for info on how to make electron-builder
work.
from electron-with-express.
from electron-with-express.
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.
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.
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)
- The server does not close after closing the application (win.close) HOT 15
- Building the application with electron-builder, it doesn't work. HOT 2
- console.log() doesn't work HOT 1
- Support both win32 and win64 HOT 1
- Sending messages to main process from express-app process HOT 6
- electron-with-express rewrite HOT 10
- Express process is not killed if app closes before window has created HOT 8
- Security warnings HOT 4
- Key binding for F1 (Server Log) doesn't work anymore HOT 4
- electron-packager build not starting express server. HOT 3
- After create exe jquery module not found is showin HOT 3
- if access the page from chrome, the express app will report error in log HOT 4
- require('electron').remote.app.getAppPath() no longer working HOT 2
- Productive build, there is no more index.html with line 64 anymore HOT 1
- new version remote electron @electron/remote HOT 3
- License mismatch between package.json and LICENSE HOT 1
- ff059291d16250f548ef05aac52aefdd4507fd09
- Question: Why use a html to load the server file? HOT 9
- add mongodb to the app HOT 2
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 electron-with-express.