Electron-builder: artifactName is not work as expected.

Created on 2 Nov 2017  路  4Comments  路  Source: electron-userland/electron-builder


  • Version: 19.43.3

  • Target: linux/win


here's my config:

    "win": {
      "artifactName": "${productName}-${version}-${os}-${arch}.${ext}",
      "target": [{
        "target": "zip",
        "arch": ["x64", "ia32"]
      }]
    },
    "linux": {
      "artifactName": "${productName}-${version}-${os}-${arch}.${ext}",
      "target": [{
        "target": "AppImage",
        "arch": ["x64", "ia32"]
      }]
    }

but CI (AppVeyor/Travis) generated filename is

MasterVyrn-0.2.0-linux-i386.AppImage
MasterVyrn-0.2.0-linux.AppImage        (error: no arch)
mastervyrn-0.2.0-ia32-win.zip          (error: pattern order wrong)
mastervyrn-0.2.0-win.zip               (error: no arch)
AppImage feature

Most helpful comment

Fixed in 19.44.0

All 4 comments

BTW, for Windows consider to use portable.

You can also specify artifactName in the build, no need to repeat in the win/linux

yes, I know, I just must ensure artifactName work properly

Fixed in 19.44.0

Was this page helpful?
0 / 5 - 0 ratings