feat: add download all as zip feature

- Add adm-zip dependency for zip compression
- Add DownloadAllZipParams/Result IPC types
- Implement registerDownloadAllZip handler in main process
- Update frontend download flow with save dialog
- ZIP includes pc/, mobile/ folders and metadata.json
This commit is contained in:
2026-03-17 08:23:09 +08:00
parent a34401ce7a
commit 8b096fcf53
7 changed files with 155 additions and 8 deletions

20
package-lock.json generated
View File

@@ -18,7 +18,9 @@
"@electron-toolkit/utils": "^3.0.0",
"@kintone/rest-api-client": "^6.1.2",
"@lobehub/ui": "^5.5.1",
"@types/adm-zip": "^0.5.7",
"@uiw/react-codemirror": "^4.23.0",
"adm-zip": "^0.5.16",
"antd": "^6.1.0",
"antd-style": "^4.1.0",
"electron-store": "^10.0.0",
@@ -4727,6 +4729,15 @@
"node": ">=10"
}
},
"node_modules/@types/adm-zip": {
"version": "0.5.7",
"resolved": "https://registry.npmmirror.com/@types/adm-zip/-/adm-zip-0.5.7.tgz",
"integrity": "sha512-DNEs/QvmyRLurdQPChqq0Md4zGvPwHerAJYWk9l2jCbD1VPpnzRJorOdiq4zsw09NFbYnhfsoEhWtxIzXpn2yw==",
"license": "MIT",
"dependencies": {
"@types/node": "*"
}
},
"node_modules/@types/babel__core": {
"version": "7.20.5",
"resolved": "https://registry.npmmirror.com/@types/babel__core/-/babel__core-7.20.5.tgz",
@@ -5798,6 +5809,15 @@
"acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
}
},
"node_modules/adm-zip": {
"version": "0.5.16",
"resolved": "https://registry.npmmirror.com/adm-zip/-/adm-zip-0.5.16.tgz",
"integrity": "sha512-TGw5yVi4saajsSEgz25grObGHEUaDrniwvA2qwSC060KfqGPdglhvPMA2lPIoxs3PQIItj2iag35fONcQqgUaQ==",
"license": "MIT",
"engines": {
"node": ">=12.0"
}
},
"node_modules/agent-base": {
"version": "7.1.4",
"resolved": "https://registry.npmmirror.com/agent-base/-/agent-base-7.1.4.tgz",