electron-typescript-example
electron-typescript-example copied to clipboard
Production build
Hi, I need to know how to build this example into production app like .exe
?
I have run
electron-builder build --win --x64
But throws an error
• electron-builder version=20.19.1
• description is missed in the package.json appPackageFile=C:\Users\Romsy\Documents\Code\Test\electron-typescript-example\package.json
• writing effective config file=dist\electron-builder-effective-config.yaml
• rebuilding native production dependencies platform=win32 arch=x64
• rebuilding native dependency name=sqlite3
• packaging platform=win32 arch=x64 electron=1.8.7 appOutDir=dist\win-unpacked
Error: Application entry file "index.js" in the "C:\Users\Romsy\Documents\Code\Test\electron-typescript-example\dist\win-unpacked\resources\app.asar" does not exist. Seems like a wrong configuration.
I just want to make sure that this example will have no error after release build.
Because I have an app that follows along the way with how this app works but only works on development mode, when I run on release build its error says that Cannot find module typeorm
. Maybe because this line https://github.com/typeorm/electron-typescript-example/blob/06e94488630897ef21f5d8066406ebcf459c76fb/src/index.html#L15-L16 I'm not sure.