package.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {
  2. "name": "yunzhu-im",
  3. "version": "1.0.0",
  4. "main": "./out/main/index.js",
  5. "author": "example.com",
  6. "license": "MIT",
  7. "scripts": {
  8. "dev": "electron-vite dev",
  9. "build": "electron-vite build",
  10. "preview": "electron-vite preview",
  11. "pack": "cross-env CSC_IDENTITY_AUTO_DISCOVERY=false WIN_CSC_LINK= electron-builder",
  12. "dist": "npm run build && cross-env CSC_IDENTITY_AUTO_DISCOVERY=false WIN_CSC_LINK= electron-builder",
  13. "dist:portable": "npm run build && cross-env CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --win portable"
  14. },
  15. "dependencies": {
  16. "@electron-toolkit/preload": "^3.0.0",
  17. "@electron-toolkit/utils": "^3.0.0",
  18. "crypto-js": "^4.2.0",
  19. "react": "^18.2.0",
  20. "react-dom": "^18.2.0",
  21. "react-icons": "^5.5.0"
  22. },
  23. "devDependencies": {
  24. "@electron-toolkit/tsconfig": "^1.0.1",
  25. "@types/crypto-js": "^4.2.2",
  26. "@types/node": "^18.14.6",
  27. "@types/react": "^18.0.28",
  28. "@types/react-dom": "^18.0.11",
  29. "@vitejs/plugin-react": "^4.0.0",
  30. "cross-env": "^10.1.0",
  31. "electron": "^39.0.0",
  32. "electron-builder": "^26.8.2",
  33. "electron-vite": "^2.0.0",
  34. "rcedit": "^5.0.2",
  35. "sharp": "^0.34.5",
  36. "to-ico": "^1.1.5",
  37. "typescript": "^5.0.2",
  38. "vite": "^5.0.0"
  39. },
  40. "build": {
  41. "appId": "com.hnyunzhu.im",
  42. "productName": "韫珠IM",
  43. "directories": {
  44. "output": "dist"
  45. },
  46. "files": [
  47. "out/**/*",
  48. "package.json"
  49. ],
  50. "afterPack": "./scripts/afterPack.js",
  51. "extraResources": [
  52. {
  53. "from": "resources",
  54. "to": ".",
  55. "filter": [
  56. "**/*"
  57. ]
  58. }
  59. ],
  60. "win": {
  61. "target": [
  62. {
  63. "target": "nsis",
  64. "arch": [
  65. "x64"
  66. ]
  67. }
  68. ],
  69. "icon": "resources/icon.ico",
  70. "forceCodeSigning": false,
  71. "signAndEditExecutable": false
  72. },
  73. "mac": {
  74. "target": [
  75. {
  76. "target": "dmg",
  77. "arch": [
  78. "x64",
  79. "arm64"
  80. ]
  81. }
  82. ],
  83. "icon": "resources/logo.png"
  84. },
  85. "linux": {
  86. "target": [
  87. {
  88. "target": "AppImage",
  89. "arch": [
  90. "x64"
  91. ]
  92. }
  93. ],
  94. "icon": "resources/logo.png"
  95. },
  96. "nsis": {
  97. "oneClick": false,
  98. "allowToChangeInstallationDirectory": true,
  99. "createDesktopShortcut": true,
  100. "createStartMenuShortcut": true,
  101. "installerLanguages": [
  102. "zh_CN",
  103. "en_US"
  104. ],
  105. "language": 2052
  106. }
  107. }
  108. }