You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

142 lines
3.8 KiB

1 month ago
1 month ago
1 month ago
  1. {
  2. "name": "peis-vue",
  3. "private": true,
  4. "version": "0.4.0",
  5. "main": "electron/background.js",
  6. "maintainers": [
  7. "长沙神豚科技有限公司"
  8. ],
  9. "author": {
  10. "name": "长沙神豚科技有限公司"
  11. },
  12. "scripts": {
  13. "dev": "vite",
  14. "build": "vue-tsc && vite build",
  15. "preview": "vite preview",
  16. "lint": "eslint -c .eslintrc --ext .ts ./src",
  17. "build-icon": "electron-icon-builder --input=./public/logo_png.png --output=public --flatten",
  18. "build-icon-pacs": "electron-icon-builder --input=./public/NotoCatFace.png --output=public/pacs --flatten",
  19. "electron:serve": "chcp 65001 && cross-env NODE_ENV=development vite --config vite.config.electron.ts",
  20. "electron:build": "rimraf dist && vue-tsc && vite build --config vite.config.electron.ts && cross-env NODE_ENV=production electron-builder"
  21. },
  22. "dependencies": {
  23. "@element-plus/icons-vue": "^2.1.0",
  24. "@unhead/vue": "^1.8.3",
  25. "axios": "^1.6.1",
  26. "cross-env": "^7.0.3",
  27. "electron-edge-js": "^22.0.1",
  28. "electron-log": "^5.0.0",
  29. "electron-updater": "^6.1.4",
  30. "element-plus": "^2.4.2",
  31. "http-server": "^14.1.1",
  32. "moment": "^2.29.4",
  33. "vue": "^3.3.4",
  34. "vue-pdf-embed": "^1.2.1",
  35. "vue-router": "^4.2.5",
  36. "vue3-pdfjs": "^0.1.6",
  37. "vuex": "^4.1.0"
  38. },
  39. "devDependencies": {
  40. "@types/ ": "^20.9.0",
  41. "@vitejs/plugin-vue": "^4.2.3",
  42. "electron": "^22.0.0",
  43. "electron-builder": "^24.4.0",
  44. "electron-devtools-installer": "^3.2.0",
  45. "electron-icon-builder": "^2.0.1",
  46. "eslint": "^8.54.0",
  47. "prettier": "^3.1.0",
  48. "rimraf": "^5.0.5",
  49. "tree-kill": "^1.2.2",
  50. "typescript": "^5.0.2",
  51. "vite": "^4.4.5",
  52. "vite-plugin-copy": "^0.1.6",
  53. "vite-plugin-electron": "^0.15.4",
  54. "vite-plugin-electron-renderer": "^0.14.5",
  55. "vue-tsc": "^1.8.5"
  56. },
  57. "build": {
  58. "appId": "com.shentun.desktop",
  59. "productName": "shentun",
  60. "copyright": "Copyright © 2022 shentun",
  61. "compression": "maximum",
  62. "asar": false,
  63. "extraResources": [
  64. {
  65. "from": "./config/",
  66. "to": "./app/config/"
  67. },
  68. {
  69. "from": "./extensions/",
  70. "to": "./app/extensions/"
  71. },
  72. {
  73. "from":"./extensions/fastReport/FastReport.dll",
  74. "to":".."
  75. },
  76. {
  77. "from":"./extensions/fastReport/FastReport.Bars.dll",
  78. "to":".."
  79. },
  80. {
  81. "from":"./extensions/fastReport/FastReport.Editor.dll",
  82. "to":".."
  83. },
  84. {
  85. "from": "node_modules/electron/dist/resources/locales/en-US.pak",
  86. "to": "../locales"
  87. },
  88. {
  89. "from": "node_modules/electron/dist/resources/locales/zh-CN.pak",
  90. "to": "../locales"
  91. }
  92. ],
  93. "directories": {
  94. "buildResources": "assets",
  95. "output": "release/${version}"
  96. },
  97. "files": [
  98. "dist/**/*",
  99. "electron/**/*",
  100. "!**/node_modules/electron/dist/resources/locales",
  101. "!**/node_modules/electron/dist/resources/*.pak"
  102. ],
  103. "publish": [
  104. {
  105. "provider": "generic",
  106. "url": ""
  107. }
  108. ],
  109. "mac": {
  110. "icon": "public/icons/icon.icns",
  111. "artifactName": "${productName}_${version}.${ext}",
  112. "target": [
  113. "dmg"
  114. ]
  115. },
  116. "win": {
  117. "icon": "public/icons/icon.ico",
  118. "target": [
  119. {
  120. "target": "nsis",
  121. "arch": [
  122. "ia32"
  123. ]
  124. }
  125. ],
  126. "artifactName": "${productName}_${version}.${ext}"
  127. },
  128. "nsis": {
  129. "oneClick": false,
  130. "allowToChangeInstallationDirectory": true,
  131. "perMachine": true,
  132. "allowElevation": true,
  133. "deleteAppDataOnUninstall": true,
  134. "createDesktopShortcut": true,
  135. "createStartMenuShortcut": true,
  136. "shortcutName": "红豚体检"
  137. },
  138. "releaseInfo": {
  139. "releaseNotes": "增加报表、读卡、摄像头拍照接口"
  140. }
  141. }
  142. }