feat: add publish config

This commit is contained in:
夜鹰 2022-05-18 10:51:22 +08:00
parent 0e90dddb2f
commit 1f4b50fe7f

View File

@ -22,9 +22,8 @@
"electron:serve": "wait-on tcp:4200 && npm run electron:dev", "electron:serve": "wait-on tcp:4200 && npm run electron:dev",
"electron:dev:static": "npm run electron:tsc && electron .", "electron:dev:static": "npm run electron:tsc && electron .",
"electron:dev": "npm run electron:tsc && electron . --development", "electron:dev": "npm run electron:tsc && electron . --development",
"electron:build": "npm-run-all -p build:* && npm run electron:tsc && electron-builder build", "build": "npm-run-all -p build:* && npm run electron:tsc && electron-builder build",
"build": "electron-builder build", "release": "npm run build && electron-builder --publish=always",
"release": "electron-builder",
"test": "npm-run-all --serial test:*", "test": "npm-run-all --serial test:*",
"electron:tsc": "tsc -p tsconfig.json" "electron:tsc": "tsc -p tsconfig.json"
}, },
@ -60,5 +59,35 @@
"typescript": "~4.6.2", "typescript": "~4.6.2",
"wait-on": "6.0.1" "wait-on": "6.0.1"
}, },
"__npminstall_done": false "__npminstall_done": false,
} "build": {
"appId": "com.foo.bar",
"productName": "Foo Bar",
"copyright": "Copyright © 2022 eolink",
"directories": {
"output": "release"
},
"files": [
"dist/",
"index.html",
"main.js",
"package.json"
],
"mac": {
"category": "public.app-category.utilities",
"icon": "resources/app.icns",
"artifactName": "eoapi_mac_${version}.${ext}",
"target": [
"dmg",
"zip"
]
},
"publish": [
{
"provider": "github",
"owner": "eolinker",
"repo": "eoapi"
}
]
}
}