Merge pull request #1964 from bubblepipe/electron
feat: Add Electron wrapper for desktop app
Showing
.github/workflows/electron-build.yml
0 → 100644
electron/README.md
0 → 100644
electron/build.sh
0 → 100755
electron/create-tray-icon.js
0 → 100644
electron/entitlements.mac.plist
0 → 100644
electron/icon.png
0 → 100644
30.5 KB
electron/main.js
0 → 100644
electron/package-lock.json
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
electron/package.json
0 → 100644
| { | |||
| "name": "new-api-electron", | |||
| "version": "1.0.0", | |||
| "description": "New API - AI Model Gateway Desktop Application", | |||
| "main": "main.js", | |||
| "scripts": { | |||
| "start-app": "electron .", | |||
| "dev-app": "cross-env NODE_ENV=development electron .", | |||
| "build": "electron-builder", | |||
| "build:mac": "electron-builder --mac", | |||
| "build:win": "electron-builder --win", | |||
| "build:linux": "electron-builder --linux" | |||
| }, | |||
| "keywords": [ | |||
| "ai", | |||
| "api", | |||
| "gateway", | |||
| "openai", | |||
| "claude" | |||
| ], | |||
| "author": "QuantumNous", | |||
| "repository": { | |||
| "type": "git", | |||
| "url": "https://github.com/QuantumNous/new-api" | |||
| }, | |||
| "devDependencies": { | |||
| "cross-env": "^7.0.3", | |||
| "electron": "28.3.3", | |||
| "electron-builder": "^24.9.1" | |||
| }, | |||
| "build": { | |||
| "appId": "com.newapi.desktop", | |||
| "productName": "New API", | |||
| "publish": null, | |||
| "directories": { | |||
| "output": "dist" | |||
| }, | |||
| "files": [ | |||
| "main.js", | |||
| "preload.js", | |||
| "icon.png", | |||
| "tray-iconTemplate.png", | |||
| "tray-iconTemplate@2x.png", | |||
| "tray-icon-windows.png" | |||
| ], | |||
| "mac": { | |||
| "category": "public.app-category.developer-tools", | |||
| "icon": "icon.png", | |||
| "identity": null, | |||
| "hardenedRuntime": false, | |||
| "gatekeeperAssess": false, | |||
| "entitlements": "entitlements.mac.plist", | |||
| "entitlementsInherit": "entitlements.mac.plist", | |||
| "target": [ | |||
| "dmg", | |||
| "zip" | |||
| ], | |||
| "extraResources": [ | |||
| { | |||
| "from": "../new-api", | |||
| "to": "bin/new-api" | |||
| }, | |||
| { | |||
| "from": "../web/dist", | |||
| "to": "web/dist" | |||
| } | |||
| ] | |||
| }, | |||
| "win": { | |||
| "icon": "icon.png", | |||
| "target": [ | |||
| "nsis", | |||
| "portable" | |||
| ], | |||
| "extraResources": [ | |||
| { | |||
| "from": "../new-api.exe", | |||
| "to": "bin/new-api.exe" | |||
| } | |||
| ] | |||
| }, | |||
| "linux": { | |||
| "icon": "icon.png", | |||
| "target": [ | |||
| "AppImage", | |||
| "deb" | |||
| ], | |||
| "category": "Development", | |||
| "extraResources": [ | |||
| { | |||
| "from": "../new-api", | |||
| "to": "bin/new-api" | |||
| } | |||
| ] | |||
| }, | |||
| "nsis": { | |||
| "oneClick": false, | |||
| "allowToChangeInstallationDirectory": true | |||
| } | |||
| } | |||
| } | |||
| \ No newline at end of file |
electron/preload.js
0 → 100644
electron/tray-icon-windows.png
0 → 100644
1.17 KB
electron/tray-iconTemplate.png
0 → 100644
459 Bytes
electron/tray-iconTemplate@2x.png
0 → 100644
754 Bytes
Please
register
or
sign in
to comment