1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
| { "name": "electron-demo", "private": true, "version": "0.0.0", "main": "dist/electron/index.js", "scripts": { "dev": "vite", "build": "vue-tsc && vite build && electron-builder", "dist-win64": "electron-builder --win --x64", "preview": "vite preview" }, "dependencies": { "vue": "^3.2.45" }, "devDependencies": { "@vitejs/plugin-vue": "^4.0.0", "electron": "^22.0.0", "electron-builder": "^23.6.0", "typescript": "^4.9.3", "vite": "^4.0.0", "vite-plugin-electron": "^0.11.1", "vue-tsc": "^1.0.11" }, "build": { "appId": "com.electron.desktop", "productName": "electron-demo", "asar": true, "copyright": "Copyright © 2023 electron", "directories": { "output": "release/" }, "files": [ "dist-electron" ], "mac": { "artifactName": "${productName}_${version}.${ext}", "target": [ "dmg" ] }, "win": { "target": [ { "target": "nsis", "arch": [ "x64" ] } ], "artifactName": "${productName}_${version}.${ext}" }, "nsis": { "oneClick": false, "perMachine": false, "allowToChangeInstallationDirectory": true, "deleteAppDataOnUninstall": false }, "publish": [ { "provider": "generic", "url": "http://127.0.0.1:8080" } ], "releaseInfo": { "releaseNotes": "版本更新的具体内容" } } }
|