Skip to content

Commit

Permalink
feat: 测试mac打包通过
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfuboy committed May 19, 2022
1 parent ef30440 commit 229146c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dist/
!src/workbench/node/request/**/*.js
!/api/*.js


scripts/notarize.js
# dependencies
node_modules
# package-lock.json
Expand Down
22 changes: 18 additions & 4 deletions electron-builder.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"appId": ".eolinker.com",
"asar": true,
"directories": {
"output": "release/"
Expand All @@ -14,7 +15,10 @@
"src/app/common/**/*",
"!**/*.ts"
],
"publish": ["github"],
"afterSign": "builder/notarize.js",
"publish": [
"github"
],
"generateUpdatesFilesForAllChannels": true,
"nsis": {
"oneClick": false,
Expand All @@ -35,10 +39,20 @@
},
"mac": {
"icon": "src/app/common/images/512x512.png",
"target": ["default"]
"hardenedRuntime": true,
"gatekeeperAssess": false,
"target": [
"dmg",
"zip"
]
},
"dmg": {
"sign": false
},
"linux": {
"icon": "src/app/common/images/",
"target": ["AppImage"]
"target": [
"AppImage"
]
}
}
}
39 changes: 5 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eoapi",
"version": "0.0.3-beta",
"version": "0.0.6-beta",
"main": "src/app/electron-main/main.js",
"description": "A lightweight, extensible API tool",
"homepage": "https://github.com/eolinker/eoapi.git",
Expand All @@ -20,7 +20,7 @@
"electron:dev:static": "npm run electron:tsc && electron .",
"electron:dev": "npm run electron:tsc && electron . --development",
"build": "npm-run-all -p build:* && npm run electron:tsc && electron-builder build",
"release": "npm run build && electron-builder --publish=always",
"release": "npm-run-all -p build:* && npm run electron:tsc && electron-builder --publish=always",
"test": "npm-run-all --serial test:*",
"electron:tsc": "tsc -p tsconfig.json"
},
Expand All @@ -45,7 +45,8 @@
"@typescript-eslint/eslint-plugin": "5.23.0",
"@typescript-eslint/parser": "5.23.0",
"electron": "18.2.2",
"electron-builder": "23.0.3",
"electron-builder": "23.0.9",
"electron-notarize": "1.2.1",
"electron-reload": "1.5.0",
"eslint": "8.15.0",
"eslint-plugin-import": "2.26.0",
Expand All @@ -56,35 +57,5 @@
"typescript": "~4.6.4",
"wait-on": "6.0.1"
},
"__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"
}
]
}
"__npminstall_done": false
}

0 comments on commit 229146c

Please sign in to comment.