package.json 2.3 KB

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