How to change artifacts name, for nsis-web with autoupdater? By default archives for web installer named like {appName}{version}-{arch}.{ext}
• building embedded block map file=dist/nsis-web/app-1.0.0-ia32.nsis.7z
• building embedded block map file=dist/nsis-web/app-1.0.0-x64.nsis.7z
How i can remove versioning from here?
It should be like this
• building embedded block map file=dist/nsis-web/app-ia32.nsis.7z
• building embedded block map file=dist/nsis-web/app-x64.nsis.7z
I have the same problem,
in short, UNFORTUNATELY YOU CAN'T.
I went to look at the code of electron-builder:
const archiveFile = path.join(this.outDir, `${packager.appInfo.sanitizedName}-${packager.appInfo.version}-${Arch[arch]}.nsis.${format}`)
... [some code]...
// [THE NEXT CODE IS THE ONE ARCHIVING YOUR NSIS]
if (isBuildDifferentialAware && this.isWebInstaller) {
const data = await appendBlockmap(archiveFile)
... [more code]...
this is the code that archive the webNsis,you can see that it uses const archiveFile
as a parameter for appendBlockmap()
, but you can't set the value of this const and it is hard coded
artifactName
controls only the .exe
file name, not the nsis.7z
constant.