package.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. "target": [
  62. "dmg",
  63. "zip"
  64. ],
  65. "extraResources": [
  66. {
  67. "from": "../new-api",
  68. "to": "bin/new-api"
  69. },
  70. {
  71. "from": "../web/dist",
  72. "to": "web/dist"
  73. }
  74. ]
  75. },
  76. "win": {
  77. "icon": "icon.png",
  78. "target": [
  79. "nsis",
  80. "portable"
  81. ],
  82. "extraResources": [
  83. {
  84. "from": "../new-api.exe",
  85. "to": "bin/new-api.exe"
  86. }
  87. ]
  88. },
  89. "linux": {
  90. "icon": "icon.png",
  91. "target": [
  92. "AppImage",
  93. "deb"
  94. ],
  95. "category": "Development",
  96. "extraResources": [
  97. {
  98. "from": "../new-api",
  99. "to": "bin/new-api"
  100. }
  101. ]
  102. },
  103. "nsis": {
  104. "oneClick": false,
  105. "allowToChangeInstallationDirectory": true
  106. }
  107. }
  108. }