How to build Meteor.js in an executable file?


#1

I need to build a meteor application under windows. How to do it right?

I found the meteor-electron package. If I understand correctly, it creates an executable file (exe).

I perform the following commands:

meteor create meteor-electron-build-test
cd meteor-electron-build-test
meteor add meson: electron
meteor

At this stage, everything is fine, the application of the electron inside the meteor is launched.

But if I stop the electron in the console and go to .meteor-electron \ win32-ia32 \ builds \ Electron-win32-ia32 \ Electron.exe - this application is empty.

I tried to add settings.

{
  "electron": {
    "name": "MyApp",
    "version": "0.1.0",
    "description": "A really cool app.",
    "rootUrl": "https://myapp.com",
    "launchPath": "/ app / landing",
    "sign": "Developer ID Application: ...",
    "height": 768,
    "width": 1024,
    "frame": true,
    "title-bar-style": "hidden",
    "resizable": true,
    "protocols": [{
      "name": "MyApp",
      "schemes": ["myapp"]
    }]
  }
}

And launched the team meteor --settings settings.json. The result is the same.

If I add the “appSrcDir” parameter: “./” - starts an endless loop that all copies to the .meteor-electron folder.

How to correctly build an executable file meteor electron using windows?