package.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {
  2. "name": "yunzhu-im",
  3. "version": "1.0.13",
  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. "electron-updater": "^6.3.9",
  20. "react": "^18.2.0",
  21. "react-dom": "^18.2.0",
  22. "react-icons": "^5.5.0"
  23. },
  24. "devDependencies": {
  25. "@electron-toolkit/tsconfig": "^1.0.1",
  26. "@types/crypto-js": "^4.2.2",
  27. "@types/node": "^18.14.6",
  28. "@types/react": "^18.0.28",
  29. "@types/react-dom": "^18.0.11",
  30. "@vitejs/plugin-react": "^4.0.0",
  31. "cross-env": "^10.1.0",
  32. "electron": "^39.0.0",
  33. "electron-builder": "^26.8.2",
  34. "electron-vite": "^2.0.0",
  35. "rcedit": "^5.0.2",
  36. "sharp": "^0.34.5",
  37. "to-ico": "^1.1.5",
  38. "typescript": "^5.0.2",
  39. "vite": "^5.0.0"
  40. },
  41. "build": {
  42. "appId": "com.hnyunzhu.im",
  43. "productName": "韫珠IM",
  44. "publish": {
  45. "provider": "generic",
  46. "url": "https://api.hnyunzhu.com:9004/app-updates/1773848909/windows/update/"
  47. },
  48. "directories": {
  49. "output": "dist"
  50. },
  51. "files": [
  52. "out/**/*",
  53. "package.json"
  54. ],
  55. "afterPack": "./scripts/afterPack.js",
  56. "extraResources": [
  57. {
  58. "from": "resources",
  59. "to": ".",
  60. "filter": [
  61. "**/*"
  62. ]
  63. }
  64. ],
  65. "win": {
  66. "target": [
  67. {
  68. "target": "nsis",
  69. "arch": [
  70. "x64"
  71. ]
  72. }
  73. ],
  74. "icon": "resources/icon.ico",
  75. "forceCodeSigning": false,
  76. "signAndEditExecutable": false
  77. },
  78. "mac": {
  79. "target": [
  80. {
  81. "target": "dmg",
  82. "arch": [
  83. "x64",
  84. "arm64"
  85. ]
  86. }
  87. ],
  88. "icon": "resources/logo.png"
  89. },
  90. "linux": {
  91. "target": [
  92. {
  93. "target": "AppImage",
  94. "arch": [
  95. "x64"
  96. ]
  97. }
  98. ],
  99. "icon": "resources/logo.png"
  100. },
  101. "nsis": {
  102. "oneClick": false,
  103. "allowToChangeInstallationDirectory": true,
  104. "createDesktopShortcut": true,
  105. "createStartMenuShortcut": true,
  106. "installerLanguages": [
  107. "zh_CN",
  108. "en_US"
  109. ],
  110. "language": 2052
  111. }
  112. }
  113. }