Skip to content

Commit 3101807

Browse files
committed
Update windows renaming logic
1 parent 6fbe792 commit 3101807

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

script/package.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,16 @@ function packageWindows() {
154154
// the architecture similar to how the setup exe and msi do so we'll just
155155
// have to rename them here after the fact.
156156
const arch = getDistArchitecture()
157-
const prefix = `${getWindowsIdentifierName()}-${getVersion()}`
158157

159158
for (const kind of shouldMakeDelta() ? ['full', 'delta'] : ['full']) {
160-
const from = join(outputDir, `${prefix}-${kind}.nupkg`)
161-
const to = join(outputDir, `${prefix}-${arch}-${kind}.nupkg`)
159+
const from = join(
160+
outputDir,
161+
`${getWindowsIdentifierName()}-${getSemverCompatibleVersion()}-${kind}.nupkg`
162+
)
163+
const to = join(
164+
outputDir,
165+
`${getWindowsIdentifierName()}-${getVersion()}-${arch}-${kind}.nupkg`
166+
)
162167

163168
console.log(`Renaming ${from} to ${to}`)
164169
await rename(from, to)

0 commit comments

Comments
 (0)