feat: use eletron to build desktop version for chatgpt-plus

This commit is contained in:
RockYang
2023-09-06 18:19:27 +08:00
parent e3d18643b8
commit 545c8fa482
5 changed files with 97 additions and 0 deletions

35
desktop/package.json Executable file
View File

@@ -0,0 +1,35 @@
{
"name": "chatgpt-plus-desktop",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "electron .",
"package": "electron-builder",
"test": "echo \"Error: no test specified\" && exit 1"
},
"build": {
"appId": "ai.r9it.com",
"productName": "ChatGPT-Plus",
"directories": {
"output": "dist"
},
"files": [
"index.js",
"package.json"
],
"mac": {
"target": "dmg"
},
"win": {
"target": "nsis",
"icon": "icons/logo.ico"
}
},
"author": "geekmaster",
"license": "MIT",
"devDependencies": {
"electron": "^26.1.0"
}
}