package.json 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. {
  2. "name": "claude-ai-installer",
  3. "version": "0.0.1",
  4. "description": "Claude AI安装器 - Claude AI Installer",
  5. "main": "dist-electron/main.js",
  6. "scripts": {
  7. "dev": "chcp 65001 >nul && vite",
  8. "build": "vue-tsc --noEmit && vite build && electron-builder",
  9. "preview": "vite preview",
  10. "electron:dev": "vite --mode electron",
  11. "electron:build": "vite build && electron-builder",
  12. "typecheck": "vue-tsc --noEmit",
  13. "lint": "eslint . --fix",
  14. "build:win": "node scripts/build.js -p win",
  15. "build:mac": "node scripts/build.js -p mac",
  16. "build:linux": "node scripts/build.js -p linux",
  17. "build:all": "node scripts/build.js -p all",
  18. "release": "node scripts/release.js",
  19. "release:patch": "node scripts/release.js patch --tag",
  20. "release:minor": "node scripts/release.js minor --tag",
  21. "release:major": "node scripts/release.js major --tag",
  22. "test": "vitest",
  23. "test:run": "vitest run",
  24. "test:coverage": "vitest run --coverage"
  25. },
  26. "dependencies": {
  27. "@element-plus/icons-vue": "^2.3.1",
  28. "axios": "^1.13.2",
  29. "electron-log": "^5.4.3",
  30. "electron-updater": "^6.6.2",
  31. "element-plus": "^2.9.0",
  32. "execa": "^9.6.1",
  33. "pinia": "^3.0.4",
  34. "sudo-prompt": "^9.2.1",
  35. "vue": "^3.5.0",
  36. "vue-i18n": "^11.2.2"
  37. },
  38. "devDependencies": {
  39. "@eslint/js": "^9.39.1",
  40. "@intlify/unplugin-vue-i18n": "^6.0.0",
  41. "@types/node": "^24.10.1",
  42. "@typescript-eslint/eslint-plugin": "^8.48.1",
  43. "@typescript-eslint/parser": "^8.48.1",
  44. "@vitejs/plugin-vue": "^6.0.2",
  45. "@vitest/coverage-v8": "^3.2.4",
  46. "@vue/eslint-config-prettier": "^10.2.0",
  47. "@vue/eslint-config-typescript": "^14.6.0",
  48. "electron": "^39.2.5",
  49. "electron-builder": "^26.0.12",
  50. "eslint": "^9.39.1",
  51. "eslint-plugin-vue": "^10.6.2",
  52. "sass": "^1.89.0",
  53. "typescript": "^5.8.0",
  54. "unplugin-auto-import": "^20.3.0",
  55. "unplugin-vue-components": "^30.0.0",
  56. "vite": "^7.2.6",
  57. "vite-plugin-electron": "^0.29.0",
  58. "vite-plugin-electron-renderer": "^0.14.6",
  59. "vitest": "^3.2.4",
  60. "vue-tsc": "^3.1.5"
  61. },
  62. "build": {
  63. "appId": "com.claude.ai.installer",
  64. "productName": "Claude AI Installer",
  65. "artifactName": "Claude-AI-Installer-${version}-${os}-${arch}.${ext}",
  66. "directories": {
  67. "output": "release"
  68. },
  69. "publish": null,
  70. "files": [
  71. "dist/**/*",
  72. "dist-electron/**/*"
  73. ],
  74. "extraResources": [
  75. {
  76. "from": "public/icons",
  77. "to": "icons"
  78. }
  79. ],
  80. "win": {
  81. "target": [
  82. {
  83. "target": "nsis",
  84. "arch": [
  85. "x64"
  86. ]
  87. },
  88. {
  89. "target": "portable",
  90. "arch": [
  91. "x64"
  92. ]
  93. }
  94. ],
  95. "icon": "public/icons/win/icon.ico"
  96. },
  97. "portable": {
  98. "artifactName": "Claude-AI-Installer-${version}-portable.${ext}"
  99. },
  100. "nsis": {
  101. "oneClick": false,
  102. "perMachine": false,
  103. "allowToChangeInstallationDirectory": true,
  104. "deleteAppDataOnUninstall": false,
  105. "installerIcon": "public/icons/win/icon.ico",
  106. "uninstallerIcon": "public/icons/win/icon.ico",
  107. "installerHeaderIcon": "public/icons/win/icon.ico",
  108. "createDesktopShortcut": true,
  109. "createStartMenuShortcut": true,
  110. "shortcutName": "Claude AI Installer",
  111. "artifactName": "Claude-AI-Installer-${version}-${os}-${arch}-setup.${ext}"
  112. },
  113. "mac": {
  114. "target": [
  115. {
  116. "target": "dmg",
  117. "arch": [
  118. "x64",
  119. "arm64"
  120. ]
  121. },
  122. {
  123. "target": "zip",
  124. "arch": [
  125. "x64",
  126. "arm64"
  127. ]
  128. }
  129. ],
  130. "icon": "public/icons/mac/icon.icns",
  131. "category": "public.app-category.developer-tools",
  132. "hardenedRuntime": true,
  133. "gatekeeperAssess": false
  134. },
  135. "dmg": {
  136. "contents": [
  137. {
  138. "x": 130,
  139. "y": 220
  140. },
  141. {
  142. "x": 410,
  143. "y": 220,
  144. "type": "link",
  145. "path": "/Applications"
  146. }
  147. ],
  148. "window": {
  149. "width": 540,
  150. "height": 380
  151. }
  152. },
  153. "linux": {
  154. "target": [
  155. {
  156. "target": "AppImage",
  157. "arch": [
  158. "x64"
  159. ]
  160. },
  161. {
  162. "target": "deb",
  163. "arch": [
  164. "x64"
  165. ]
  166. },
  167. {
  168. "target": "rpm",
  169. "arch": [
  170. "x64"
  171. ]
  172. }
  173. ],
  174. "icon": "public/icons/png",
  175. "category": "Development",
  176. "maintainer": "Claude AI <[email protected]>",
  177. "vendor": "Claude AI"
  178. }
  179. }
  180. }