add mac packaging

This commit is contained in:
yang991178 2020-06-13 13:12:52 +08:00
parent be3bca8420
commit cd731009a1
2 changed files with 5 additions and 1 deletions

BIN
build/icon.icns Normal file

Binary file not shown.

View File

@ -7,7 +7,8 @@
"build": "webpack --config ./webpack.config.js",
"electron": "electron ./dist/electron.js",
"start": "npm run build && npm run electron",
"package-win": "electron-builder --win --x64"
"package-win": "electron-builder --win --x64",
"package-mac": "sudo electron-builder --mac"
},
"keywords": [],
"author": "Haoyuan Liu",
@ -38,6 +39,9 @@
],
"showNameOnTiles": true,
"setBuildNumber": true
},
"mac": {
"target": ["dmg"]
}
},
"devDependencies": {