Skip to content

Production build #1

Open
Open
@rohmanhm

Description

@rohmanhm

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

<script>
var typeorm = require("typeorm");
I'm not sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions