chore: use electron-vite build

This commit is contained in:
linyuchen
2024-03-02 10:45:42 +08:00
parent e9e8288f34
commit f7b9d599c3
11 changed files with 5158 additions and 119 deletions

View File

@@ -5,16 +5,18 @@
"description": "NTQQLiteLoaderOneBotApi",
"main": "dist/main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "vite build",
"depend": "cd ./dist & npm install --omit=dev"
"build": "electron-vite build",
"build-mac": "npm run build && npm run deploy-mac",
"deploy-mac": "cp -r dist/* ~/Library/Containers/com.tencent.qq/Data/LiteLoaderQQNT/plugins/LLOneBot/",
"build-win": "npm run build && npm run deploy-win",
"deploy-win": "cmd /c \"xcopy /S /Y dist\\* %USERPROFILE%\\documents\\LiteLoaderQQNT\\plugins\\LLOneBot\\\""
},
"author": "",
"license": "ISC",
"dependencies": {
"electron-vite": "^2.0.0",
"express": "^4.18.2",
"fluent-ffmpeg": "^2.1.2",
"json-bigint": "^1.0.0",
"music-metadata": "^8.1.4",
"silk-wasm": "^3.2.3",
"utf-8-validate": "^6.0.3",
@@ -22,14 +24,15 @@
"ws": "^8.16.0"
},
"devDependencies": {
"vite": "^4.4.9",
"vite-plugin-cp": "^4.0.8",
"@types/express": "^4.17.20",
"@types/fluent-ffmpeg": "^2.1.24",
"@types/node": "^20.11.24",
"@types/uuid": "^9.0.8",
"@types/ws": "^8.5.10",
"electron": "^29.0.1",
"typescript": "^5.2.2"
"ts-node": "^10.9.2",
"typescript": "^5.2.2",
"vite": "^5.1.4",
"vite-plugin-cp": "^4.0.8"
}
}