Electron-builder: ${arch} missing from app-update.yml

Created on 21 Mar 2017  Â·  14Comments  Â·  Source: electron-userland/electron-builder

  • Version: 15.6.2

  • Target: Windows



This is in my package.json:

    "publish": {
      "provider": "generic",
      "url": "https://website.com/download/${os}/${arch}",
      "channel": "latest"
    }

The generated app-update.yml file contains this:

provider: generic
url: 'https://website.com/download/win'
channel: latest
nsis windows

Most helpful comment

Maybe x64-ia32? I just don't think it should be blank because you don't know if something was broken.

All 14 comments

Nsis installer contains both archs. So, no arch.

@develar I think it should still default to whatever was passed in. If I run build --x64 --mac and it shows up, but doesn't when I run build --x64 --win, then that can be confusing.

then that can be confusing.

build --x64 --mac and it shows up

Really? I will check. Wanted behaviour — pass arch for mac or not?

Ok I just tried a build for mac with the latest version and it doesn't show there either. But it used to work in older versions so something changed. If it's no longer supported then that's fine. But I think if ${arch} is defined it should put something there instead of blank.

But I think if ${arch} is defined it should put something there instead of blank.

We just remove it from pattern. It doesn't work?

I was just surprised it used to work but now doesn't. But it's ok, I can work around it. Thanks for the help. Closing this.

I can work around it.

Tell what you want and it will be fixed. What's wrong?

I think it should always pass the arch defined by the build command into ${arch}.

What to do in case of NSIS, where one installer contains both archs?

It should be the same for NSIS, if I do build --x64 --win I would expect x64 to show up. It's mainly for building a correct url so it shouldn't matter what the installer contains.

And if you do build --x64 --ia32 --win arch should be removed, right?

Maybe x64-ia32? I just don't think it should be blank because you don't know if something was broken.

Maybe x64-ia32

No, because it is not valid arch string. I think it is better just remove arch from macro (as it is now).

Ok that's fine

Was this page helpful?
0 / 5 - 0 ratings