如何使用自动更新程序更改nsis-web的工件名称?
默认情况下,Web安装程序的文件名为{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
我如何从这里删除版本控制?
应该是这样
• building embedded block map file=dist/nsis-web/app-ia32.nsis.7z
• building embedded block map file=dist/nsis-web/app-x64.nsis.7z
最佳答案
根据electron-build nsis build docs,您可以定义应用程序名称
artifactName String - The artifact file name template. Defaults to
${productName} Setup ${version}.${ext}
您可以在此处添加以下macros
${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.
关于electron - Electron Nsis-Web,如何更改工件名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61167439/