package.json 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {
  2. "name": "UsoftchinaSaasClient",
  3. "version": "0.0.3",
  4. "description": "saas在线进销存系统",
  5. "main": "./main.js",
  6. "scripts": {
  7. "dev-start": "electron . dev",
  8. "local-start": "electron . local",
  9. "build": "cd ../ && sencha app build --build prod --destination electron/dist/ --production",
  10. "pack": "npm run build && electron-builder --win --x64 --ia32 --dir",
  11. "dist": "npm run build && electron-builder --win --x64 --ia32"
  12. },
  13. "author": "深圳市优软科技有限公司",
  14. "license": "ISC",
  15. "dependencies": {
  16. "electron-updater": "^4.0.6"
  17. },
  18. "devDependencies": {
  19. "electron": "^3.0.11",
  20. "electron-builder": "^20.38.3"
  21. },
  22. "build": {
  23. "productName": "U企云服",
  24. "appId": "saas.usoftchina.com",
  25. "directories": {
  26. "output": "out"
  27. },
  28. "publish": [
  29. {
  30. "provider": "generic",
  31. "url": "https://saas-assets.usoftchina.com"
  32. }
  33. ],
  34. "files": [
  35. "dist/**/*",
  36. "lib/**/*",
  37. "images/**/*",
  38. "main.js",
  39. "*.html"
  40. ],
  41. "mac": {
  42. "artifactName": "${name}_setup_${version}.${ext}"
  43. },
  44. "win": {
  45. "target": "nsis-web",
  46. "artifactName": "${name}_setup_${version}.${ext}"
  47. },
  48. "linux": {
  49. "artifactName": "${name}_setup_${version}.${ext}"
  50. }
  51. },
  52. "nsis": {
  53. "oneClick": true,
  54. "perMachine": true,
  55. "allowElevation": true,
  56. "allowToChangeInstallationDirectory": true,
  57. "createDesktopShortcut": true,
  58. "runAfterFinish": true
  59. },
  60. "nsisWeb": {
  61. "oneClick": true,
  62. "perMachine": true,
  63. "allowElevation": true,
  64. "allowToChangeInstallationDirectory": true,
  65. "createDesktopShortcut": true,
  66. "runAfterFinish": true
  67. }
  68. }