Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

How to integrate with electron-packager #94

Open
oOtroyOo opened this issue Feb 26, 2021 · 0 comments
Open

How to integrate with electron-packager #94

oOtroyOo opened this issue Feb 26, 2021 · 0 comments

Comments

@oOtroyOo
Copy link

oOtroyOo commented Feb 26, 2021

First of all , now I can run these code running in VSCode or command line

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

if I use electron-packager , by this script

"package": "electron-packager . --overwrite --platform=win32 --out=out --icon=app.ico --electron-version=11.3.0"

it can be build , but it thows error while running:

image

It is obvious that ES6 capabilities dosen't work

How to fix it?

by the way , I noticed that current codes in file electron.cmd is diffrent from standard file of Electronm, is that the reason?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant