Skip to content

Instantly share code, notes, and snippets.

@thatisuday
Last active December 29, 2021 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thatisuday/a7dbfef545acc107ece02e8cd6893306 to your computer and use it in GitHub Desktop.
Save thatisuday/a7dbfef545acc107ece02e8cd6893306 to your computer and use it in GitHub Desktop.
A sample package.json file for the electron-builder
{
"name": "electron-lessons",
"version": "1.0.0",
"description": "A sample Electron (JS) project for Medium lessons.",
"main": "app/index.js",
"scripts": {
"start": "electron .",
"postinstall": "electron-builder install-app-deps",
"pack": "electron-builder -nwl"
},
"repository": {
"type": "git",
"url": "git+https://github.com/course-one/electron-lessons.git"
},
"author": {
"name": "Uday Hiwarale",
"email": "thatisuday@gmail.com",
"url": "https://thatisuday.com"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/course-one/electron-lessons/issues"
},
"homepage": "https://github.com/course-one/electron-lessons#readme",
"devDependencies": {
"electron": "^11.1.1",
"electron-builder": "^22.9.1"
},
"dependencies": {
"chokidar": "^3.4.3",
"drag-drop": "^6.1.0",
"fs-extra": "^9.0.1",
"open": "^7.3.0"
}
}
@gerhat
Copy link

gerhat commented Jun 10, 2021

I believe there is a typo in line 9. It should read: "pack": "electron-builder -mwl"
i.e: -nwl should change to: -mwl

@Boris-creator
Copy link

@gerhat and really.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment