Electron-builder: Builds doesn't work

Created on 3 Aug 2017  路  2Comments  路  Source: electron-userland/electron-builder

Hi, I am trying to make a build of app https://github.com/nontrip/YaStreamDesktop
If I make a "clean" build without precompiling there is an exception unexpected token import.
If I make a build with compiling modules there is an exception that something is not precompiled or something is missing.
So I really need your help as I tried everything I found and I am quite close to give up, but we spent a lot of effort on this project(
pls...

obsolete

Most helpful comment

HI, My steps.

  1. git clone https://github.com/nontrip/YaStreamDesktop.git
  2. yarn
  3. yarn add electron-builder --dev
  4. add package.json scripts "win": "electron-builder --win --x64 --dir"
  5. add package.json build
  "build": {
    "appId": "your.id"
    "files": [
      "!log.txt"
    ],
    "extraFiles": [
      "log.txt"
    ]
  }

6.edit main.js

import { app, BrowserWindow } from 'electron';
//to
const {app, BrowserWindow} = require('electron')

7.yarn win

  1. run dist\win-unpacked\electron-es6-react.exe

He seems to be working properly.

run

All 2 comments

HI, My steps.

  1. git clone https://github.com/nontrip/YaStreamDesktop.git
  2. yarn
  3. yarn add electron-builder --dev
  4. add package.json scripts "win": "electron-builder --win --x64 --dir"
  5. add package.json build
  "build": {
    "appId": "your.id"
    "files": [
      "!log.txt"
    ],
    "extraFiles": [
      "log.txt"
    ]
  }

6.edit main.js

import { app, BrowserWindow } from 'electron';
//to
const {app, BrowserWindow} = require('electron')

7.yarn win

  1. run dist\win-unpacked\electron-es6-react.exe

He seems to be working properly.

run

袘褍写械屑 褋褔懈褌邪褌褜, 胁褋械 芯泻 褋械泄褔邪褋, 械褋谢懈 褔褌芯, 锌械褉械芯褌泻褉褘胁邪泄褌械 ;)

Was this page helpful?
0 / 5 - 0 ratings