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

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

0
qimingcode/packages/opencode/bin/qimingcode Normal file → Executable file
View File

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`)
}
}

View File

@@ -24,7 +24,7 @@ import nightowl from "./theme/nightowl.json" with { type: "json" }
import nord from "./theme/nord.json" with { type: "json" }
import osakaJade from "./theme/osaka-jade.json" with { type: "json" }
import onedark from "./theme/one-dark.json" with { type: "json" }
import opencode from "./theme/opencode.json" with { type: "json" }
import opencode from "./theme/vesper.json" with { type: "json" }
import orng from "./theme/orng.json" with { type: "json" }
import lucentOrng from "./theme/lucent-orng.json" with { type: "json" }
import palenight from "./theme/palenight.json" with { type: "json" }