产品化改造:完善本地集成与启动体验
This commit is contained in:
0
qimingcode/packages/opencode/bin/qimingcode
Normal file → Executable file
0
qimingcode/packages/opencode/bin/qimingcode
Normal file → Executable 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`)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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" }
|
||||
|
||||
Reference in New Issue
Block a user