fix(desktop): hardcode Windows & Linux artifact names to avoid scoped-package slash

The package name `@multica/desktop` contains a slash which produces
invalid filenames on Windows (`@multica/desktop-0.1.0-setup.exe`).
Hardcode `multica-desktop-*` for win and linux sections — same
approach already used for mac/dmg.

Also add explicit `nsis.artifactName` so the NSIS installer artifact
name stays consistent with the top-level win config.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
yushen
2026-04-16 18:47:24 +08:00
parent 9a97ee1f4c
commit 10618b1fab

View File

@@ -33,11 +33,17 @@ linux:
target:
- AppImage
- deb
artifactName: ${name}-${version}-${arch}.${ext}
# Hardcoded name — same rationale as mac: avoids the `@multica/desktop-*`
# subdirectory that `${name}` produces for scoped package names.
artifactName: multica-desktop-${version}-${arch}.${ext}
win:
target:
- nsis
artifactName: ${name}-${version}-setup.${ext}
# Hardcoded name — `${name}` resolves to `@multica/desktop` which contains
# a slash, producing invalid filenames on Windows.
artifactName: multica-desktop-${version}-setup.${ext}
nsis:
artifactName: multica-desktop-${version}-setup.${ext}
publish:
provider: github
owner: multica-ai