package.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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-app": "electron .",
  8. "dev-app": "cross-env NODE_ENV=development electron .",
  9. "build": "electron-builder",
  10. "build:mac": "electron-builder --mac",
  11. "build:win": "electron-builder --win",
  12. "build:linux": "electron-builder --linux"
  13. },
  14. "keywords": [
  15. "ai",
  16. "api",
  17. "gateway",
  18. "openai",
  19. "claude"
  20. ],
  21. "author": "QuantumNous",
  22. "repository": {
  23. "type": "git",
  24. "url": "https://github.com/QuantumNous/new-api"
  25. },
  26. "devDependencies": {
  27. "cross-env": "^7.0.3",
  28. "electron": "35.7.5",
  29. "electron-builder": "^24.9.1"
  30. },
  31. "build": {
  32. "appId": "com.newapi.desktop",
  33. "productName": "New-API-App",
  34. "publish": null,
  35. "directories": {
  36. "output": "dist"
  37. },
  38. "files": [
  39. "main.js",
  40. "preload.js",
  41. "icon.png",
  42. "tray-iconTemplate.png",
  43. "[email protected]",
  44. "tray-icon-windows.png"
  45. ],
  46. "mac": {
  47. "category": "public.app-category.developer-tools",
  48. "icon": "icon.png",
  49. "identity": null,
  50. "hardenedRuntime": false,
  51. "gatekeeperAssess": false,
  52. "entitlements": "entitlements.mac.plist",
  53. "entitlementsInherit": "entitlements.mac.plist",
  54. "target": [
  55. "dmg",
  56. "zip"
  57. ],
  58. "extraResources": [
  59. {
  60. "from": "../new-api",
  61. "to": "bin/new-api"
  62. },
  63. {
  64. "from": "../web/dist",
  65. "to": "web/dist"
  66. }
  67. ]
  68. },
  69. "win": {
  70. "icon": "icon.png",
  71. "target": [
  72. "nsis",
  73. "portable"
  74. ],
  75. "extraResources": [
  76. {
  77. "from": "../new-api.exe",
  78. "to": "bin/new-api.exe"
  79. }
  80. ]
  81. },
  82. "linux": {
  83. "icon": "icon.png",
  84. "target": [
  85. "AppImage",
  86. "deb"
  87. ],
  88. "category": "Development",
  89. "extraResources": [
  90. {
  91. "from": "../new-api",
  92. "to": "bin/new-api"
  93. }
  94. ]
  95. },
  96. "nsis": {
  97. "oneClick": false,
  98. "allowToChangeInstallationDirectory": true
  99. }
  100. }
  101. }