feat: 完善一波代码 & 支持win(待测试验证)

This commit is contained in:
volare
2022-12-04 17:53:43 +08:00
parent 93a79f482f
commit 84d749a54d
10 changed files with 164 additions and 30 deletions

View File

@@ -26,7 +26,7 @@
"build": "npm run tauri build -- --target universal-apple-darwin",
"build:windows": "npm run tauri build -- --target x86_64-pc-windows-msvc",
"build:linux": "npm run tauri build --release",
"build:all-unix":"chmod +x ./script/build.sh && ./script/build.sh",
"build:all-unix": "chmod +x ./script/build.sh && ./script/build.sh",
"build:all-windows": ".\\script\\build.bat",
"tauri": "tauri",
"cli": "rollup -c rollup.config.js --watch",
@@ -40,6 +40,7 @@
"@tauri-apps/api": "^1.2.0",
"@tauri-apps/cli": "^1.2.1",
"axios": "^1.1.3",
"chalk": "^5.1.2",
"commander": "^9.4.1",
"file-type": "^18.0.0",
"is-url": "^1.2.4",
@@ -47,7 +48,8 @@
"ora": "^6.1.2",
"prompts": "^2.4.2",
"shelljs": "^0.8.5",
"tmp-promise": "^3.0.3"
"tmp-promise": "^3.0.3",
"update-notifier": "^6.0.2"
},
"devDependencies": {
"@rollup/plugin-alias": "^4.0.2",
@@ -60,6 +62,7 @@
"@types/prompts": "^2.4.1",
"@types/shelljs": "^0.8.11",
"@types/tmp": "^0.2.3",
"@types/update-notifier": "^6.0.1",
"app-root-path": "^3.1.0",
"concurrently": "^7.5.0",
"cross-env": "^7.0.3",