0

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
Dmitriy Yurov
  • 66
  • 1
  • 7

1 Answers1

0

according to electron-build nsis build docs , you can define the application name

artifactName String - The artifact file name template. Defaults to ${productName} Setup ${version}.${ext}

you can add following macros listed here

${arch} — expanded to ia32, x64. If no arch, macro will be removed from your pattern with leading space, - and _ (so, you don’t need to worry and can reuse pattern).

${os} — expanded to mac, linux or win according to target platform. ${platform} — expanded to darwin, linux or win32 according to Node.js process.platform property.

${name} – package.json name.

${productName} — Sanitized product name.

${version}

${channel} — detected prerelease component from version (e.g. beta).

${env.ENV_NAME} — any environment variable.

namila007
  • 1,044
  • 9
  • 26