📝 更新打包方法 优化启动速度(目前没什么区别其实)
This commit is contained in:
@@ -40,12 +40,12 @@ yarn install
|
||||
|
||||
### 开发模式
|
||||
```bash
|
||||
yarn dev # 启动 Electron 开发环境
|
||||
yarn dev
|
||||
```
|
||||
|
||||
### 构建
|
||||
```bash
|
||||
yarn build # 构建生产版本
|
||||
yarn build
|
||||
```
|
||||
|
||||
## 技术栈
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "frontend",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"version": "0.0.1",
|
||||
"main": "dist-electron/main.js",
|
||||
"scripts": {
|
||||
"dev": "concurrently \"vite\" \"yarn watch:main\" \"yarn electron-dev\"",
|
||||
@@ -12,19 +12,31 @@
|
||||
"web": "vite"
|
||||
},
|
||||
"build": {
|
||||
"asar": true,
|
||||
"asarUnpack":[],
|
||||
"extraMetadata": {
|
||||
"env": "prod"
|
||||
},
|
||||
"appId": "xyz.automaa.frontend",
|
||||
"productName": "AUTO_MAA",
|
||||
"files": [
|
||||
"dist",
|
||||
"dist-electron",
|
||||
"public"
|
||||
"public",
|
||||
"!src/assets/*"
|
||||
],
|
||||
"extraResources": [
|
||||
{
|
||||
"from": "src/assets",
|
||||
"to": "assets",
|
||||
"filter": []
|
||||
}
|
||||
],
|
||||
"directories": {
|
||||
"buildResources": "assets"
|
||||
},
|
||||
"win": {
|
||||
"requestedExecutionLevel": "requireAdministrator",
|
||||
"icon": "public/AUTO_MAA.ico"
|
||||
"target": "dir",
|
||||
"icon": "public/AUTO_MAA.ico",
|
||||
"artifactName": "AUTO_MAA.exe"
|
||||
},
|
||||
"mac": {
|
||||
"icon": "public/AUTO_MAA.ico"
|
||||
@@ -63,5 +75,6 @@
|
||||
"vue-eslint-parser": "^10.2.0",
|
||||
"vue-tsc": "^2.2.12",
|
||||
"wait-on": "^8.0.4"
|
||||
}
|
||||
},
|
||||
"packageManager": "yarn@4.9.1+sha256.6ffc213b3ce0af5c92507977d9537ea3cc085caa52d1c3f08e94d613407fed19"
|
||||
}
|
||||
|
||||
9891
frontend/yarn.lock
9891
frontend/yarn.lock
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user