diff --git a/README.md b/README.md index d23844d..a8a4e80 100644 --- a/README.md +++ b/README.md @@ -52,9 +52,11 @@ # 打包-windows版本 npm run build-w + npm run build-w-64 # 打包-mac版本 npm run build-m + npm run build-m-arm64 # 打包-linux版本 npm run build-l diff --git a/package.json b/package.json index af6aec2..e89e155 100755 --- a/package.json +++ b/package.json @@ -8,8 +8,10 @@ "start": "electron .", "dev": "electron . --env=local", "test": "concurrently \"cd ./frontend && npm run serve\" \"electron . --env=local\"", - "build-w": "electron-builder -w", + "build-w": "electron-builder -w --ia32", + "build-w-64": "electron-builder -w --x64", "build-m": "electron-builder -m", + "build-m-arm64": "electron-builder -m --arm64", "build-l": "electron-builder -l deb tar.xz", "web-start": "egg-scripts start --daemon --title=electron-egg --ignore-stderr --env=prod --workers=1", "web-stop": "egg-scripts stop --title=electron-egg", @@ -47,38 +49,26 @@ "url": "https://github.com/wallace5303/electron-egg" } ], - "dmg": { - "contents": [ - { - "x": 410, - "y": 150, - "type": "link", - "path": "/Applications" - }, - { - "x": 130, - "y": 150, - "type": "file" - } - ] - }, "mac": { - "icon": "build/icons/icon.icns" + "icon": "build/icons/icon.icns", + "artifactName": "${productName}-macos-${version}.${ext}", + "target": [ + "dmg", + "zip" + ] }, "win": { "icon": "build/icons/icon.ico", - "artifactName": "${productName}_windows_${version}.${ext}", + "artifactName": "${productName}-windows-${version}.${ext}", "target": [ { - "target": "nsis", - "arch": [ - "ia32" - ] + "target": "nsis" } ] }, "linux": { "icon": "build/icons/256x256.png", + "artifactName": "${productName}-linux-${version}.${ext}", "target": [ "deb" ]