产品化改造:完善本地集成与启动体验

This commit is contained in:
baiyanyun
2026-06-02 17:55:08 +08:00
parent a280774f50
commit 873cd6ef53
24 changed files with 3490 additions and 45 deletions

View File

@@ -257,9 +257,11 @@ for (const item of targets) {
if (Script.release) {
for (const key of Object.keys(binaries)) {
if (key.includes("linux")) {
await $`tar -czf ../../${key}.tar.gz *`.cwd(`dist/${key}/bin`)
} else {
// Electron's prepare-qimingcode.js downloads .tar.gz assets for every
// platform, including macOS and Windows. Keep zip as an additional
// Windows-friendly artifact, but always publish the tarball contract.
await $`tar -czf ../../${key}.tar.gz *`.cwd(`dist/${key}/bin`)
if (key.includes("windows")) {
await $`zip -r ../../${key}.zip *`.cwd(`dist/${key}/bin`)
}
}