mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-17 11:07:11 +08:00
feat(desktop): support win-legacy desktop CI
This commit is contained in:
6
.github/scripts/register-releases.mjs
vendored
6
.github/scripts/register-releases.mjs
vendored
@@ -74,6 +74,12 @@ for (const base of fs.readdirSync(dir)) {
|
||||
} else if (/x64\.zip$/.test(base)) {
|
||||
platform = 'mac-x64'
|
||||
slot = 'upd'
|
||||
} else if (/win7.*\.exe$/i.test(base)) {
|
||||
// Legacy Win7/8 build (Electron 22). Its artifactName carries a "win7"
|
||||
// segment so it never collides with the standard win exe in the same
|
||||
// v<version>/ folder — just like arm64/x64 distinguish the two mac builds.
|
||||
platform = 'win-legacy'
|
||||
slot = 'main'
|
||||
} else if (/\.exe$/.test(base)) {
|
||||
platform = 'win'
|
||||
slot = 'main'
|
||||
|
||||
Reference in New Issue
Block a user