package.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. "tray-icon-windows.png"
  44. ],
  45. "mac": {
  46. "category": "public.app-category.developer-tools",
  47. "icon": "icon.png",
  48. "identity": null,
  49. "hardenedRuntime": false,
  50. "gatekeeperAssess": false,
  51. "entitlements": "entitlements.mac.plist",
  52. "entitlementsInherit": "entitlements.mac.plist",
  53. "target": [
  54. "dmg",
  55. "zip"
  56. ],
  57. "extraResources": [
  58. {
  59. "from": "../new-api",
  60. "to": "bin/new-api"
  61. },
  62. {
  63. "from": "../web/dist",
  64. "to": "web/dist"
  65. }
  66. ]
  67. },
  68. "win": {
  69. "icon": "icon.png",
  70. "target": [
  71. "nsis",
  72. "portable"
  73. ],
  74. "extraResources": [
  75. {
  76. "from": "../new-api.exe",
  77. "to": "bin/new-api.exe"
  78. }
  79. ]
  80. },
  81. "linux": {
  82. "icon": "icon.png",
  83. "target": [
  84. "AppImage",
  85. "deb"
  86. ],
  87. "category": "Development",
  88. "extraResources": [
  89. {
  90. "from": "../new-api",
  91. "to": "bin/new-api"
  92. }
  93. ]
  94. },
  95. "nsis": {
  96. "oneClick": false,
  97. "allowToChangeInstallationDirectory": true
  98. }
  99. }
  100. }