How do I correctly package my electron app to dmg ? package.json not found

Hi Guys,

I Have successfully package my app to the dmg for the mac, but The problem is I can’t start the app. When I start the app, I got this error:
Uncaught Error: ENOENT: no such file or directory, open ‘package.json’
at Object.openSync (fs.js:436)
at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:160:31)
at Object.readFileSync (fs.js:341)
at Object.fs.readFileSync (ELECTRON_ASAR.js:580)
at Object. (/Users/elevenian/Des…tron-db/index.js:14)
at Object. (/Users/elevenian/Des…ron-db/index.js:438)
at Module._compile (internal/modules/cjs/loader.js:693)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:704)
at Module.load (internal/modules/cjs/loader.js:602)
at tryModuleLoad (internal/modules/cjs/loader.js:541)

Here is my package.json file.

{
“name”: “SuperApp”,
“productName”: “Super App”,
“version”: “1.0.0”,
“description”: “A minimal Super Grin Wallet - Super App”,
“main”: “main.js”,
“build”: {
“appId”: “com.test.super”,
“mac”: {
“category”: “Finance”
}
},
“repository”: “https://github.com/electron/electron-quick-start”,
“keywords”: [
“Electron”,
“quick”,
“start”,
“tutorial”,
“demo”
],
“scripts”: {
“start”: “electron .”,
“package” : “electron-packager . --overwrite --platform=darwin --arch=x64 --prune=true --out=release-builds”
},
“author”: “Futurerheza”,
“license”: “CC0-1.0”,
“dependencies”: {
“app-root-dir”: “^1.0.2”,
“electron-db”: “^0.8.3”,
“electron-reload”: “^1.4.0”
},
“devDependencies”: {
“electron”: “^4.0.5”,
“electron-packager”: “^13.0.1”
}
}