Build for Mac, need to fix babel config

This commit is contained in:
uonai 2020-07-01 23:54:44 -05:00
parent 47eab8eb7b
commit fa9f4984bd
3 changed files with 15 additions and 9 deletions

BIN
build/icon.icns Normal file

Binary file not shown.

View File

@ -1,5 +1,7 @@
{ {
"name": "slate", "name": "slate",
"description": "",
"author": "slate",
"version": "0.0.1", "version": "0.0.1",
"engines": { "engines": {
"node": ">=11 <12" "node": ">=11 <12"
@ -9,7 +11,16 @@
"dev": "node . --unhandled-rejections=strict", "dev": "node . --unhandled-rejections=strict",
"build": "next build", "build": "next build",
"start": "NODE_ENV=production node . --unhandled-rejections=strict", "start": "NODE_ENV=production node . --unhandled-rejections=strict",
"electron": "electron ." "electron": "electron .",
"electronDist": "electron-builder"
},
"build": {
"appId": "com.slate",
"productName": "slate",
"mac": {
"icon": " build/icon.icns",
"asar": "false"
}
}, },
"dependencies": { "dependencies": {
"@babel/preset-env": "^7.10.4", "@babel/preset-env": "^7.10.4",
@ -27,7 +38,6 @@
"chartkick": "^3.2.0", "chartkick": "^3.2.0",
"compression": "^1.7.4", "compression": "^1.7.4",
"dotenv": "^8.2.0", "dotenv": "^8.2.0",
"electron": "^9.0.5",
"express": "^4.17.1", "express": "^4.17.1",
"formidable": "^1.2.2", "formidable": "^1.2.2",
"fs-extra": "^9.0.1", "fs-extra": "^9.0.1",
@ -43,11 +53,7 @@
"ws": "^7.3.0" "ws": "^7.3.0"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-json": "^4.1.0", "electron": "^9.0.5",
"@rollup/plugin-node-resolve": "^8.1.0", "electron-builder": "^22.7.0"
"rollup": "^2.18.1",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-terser": "^6.1.0"
} }
} }