产品化改造:完善本地集成与启动体验
This commit is contained in:
@@ -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`)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user