package.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {
  2. "name": "new-api-electron",
  3. "version": "1.0.0",
  4. "description": "New API - AI Model Gateway Desktop Application",
  5. "main": "main.js",
  6. "scripts": {
  7. "start": "set NODE_ENV=development&& electron .",
  8. "build": "electron-builder",
  9. "build:mac": "electron-builder --mac",
  10. "build:win": "electron-builder --win",
  11. "build:linux": "electron-builder --linux"
  12. },
  13. "keywords": [
  14. "ai",
  15. "api",
  16. "gateway",
  17. "openai",
  18. "claude"
  19. ],
  20. "author": "",
  21. "license": "MIT",
  22. "repository": {
  23. "type": "git",
  24. "url": "https://github.com/Calcium-Ion/new-api"
  25. },
  26. "devDependencies": {
  27. "electron": "^28.0.0",
  28. "electron-builder": "^24.9.1"
  29. },
  30. "build": {
  31. "appId": "com.newapi.desktop",
  32. "productName": "New API",
  33. "publish": null,
  34. "directories": {
  35. "output": "dist"
  36. },
  37. "files": [
  38. "main.js",
  39. "preload.js",
  40. "icon.png",
  41. "tray-iconTemplate.png",
  42. "tray-iconTemplate@2x.png"
  43. ],
  44. "mac": {
  45. "category": "public.app-category.developer-tools",
  46. "icon": "icon.png",
  47. "identity": null,
  48. "hardenedRuntime": false,
  49. "gatekeeperAssess": false,
  50. "entitlements": "entitlements.mac.plist",
  51. "entitlementsInherit": "entitlements.mac.plist",
  52. "target": [
  53. "dmg",
  54. "zip"
  55. ],
  56. "extraResources": [
  57. {
  58. "from": "../new-api",
  59. "to": "bin/new-api"
  60. },
  61. {
  62. "from": "../web/dist",
  63. "to": "web/dist"
  64. }
  65. ]
  66. },
  67. "win": {
  68. "icon": "icon.png",
  69. "target": [
  70. "nsis",
  71. "portable"
  72. ],
  73. "extraResources": [
  74. {
  75. "from": "../new-api.exe",
  76. "to": "bin/new-api.exe"
  77. }
  78. ]
  79. },
  80. "linux": {
  81. "icon": "icon.png",
  82. "target": [
  83. "AppImage",
  84. "deb"
  85. ],
  86. "category": "Development",
  87. "extraResources": [
  88. {
  89. "from": "../new-api",
  90. "to": "bin/new-api"
  91. }
  92. ]
  93. },
  94. "nsis": {
  95. "oneClick": false,
  96. "allowToChangeInstallationDirectory": true
  97. }
  98. }
  99. }