package.json 2.3 KB

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