Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The name in latest.yml is different with the name of the installer #3937

Closed
Bendjen opened this issue Jun 3, 2019 · 1 comment
Closed

The name in latest.yml is different with the name of the installer #3937

Bendjen opened this issue Jun 3, 2019 · 1 comment
Labels

Comments

@Bendjen
Copy link

Bendjen commented Jun 3, 2019

electron-builder version is 20.40.2

in package.json , 'name' is 'A' , and 'build.productName' is 'B'

image

after I finished packing. latest.yml is
image

but the installer package is
image

It causes a problem when using electron-updater to update my app like this:
image

In the 'info', the files' url is' A-Setup-1.0.0.exe' which should be 'B Setup 1.0.0.exe'.
That threw a download error 404 to fetch the file ,so update failed.

There is two problem totally.

#1. The files-url name in latest.yml uses 'name' field in package.json,but the installer created by electron-builder following ‘build.productName' field in package.json.They created different file name!

#2.In latest.yml the 'url' field uses '-' to connect words,like 'A-Setup-1.0.0.exe',but the installer's name use the space ' ' to connect words like 'B Setup 1.0.0.exe'. This is the other one causes different file name.

So I have to change the file latest.yml to make sure the same.
Or if I have the wrong understanding about the 'name' field and 'productName' field?

@Bendjen Bendjen changed the title The name in latest.yml is different with the installer package The name in latest.yml is different with the name of the installer Jun 3, 2019
@stale
Copy link

stale bot commented Aug 2, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the backlog label Aug 2, 2019
@stale stale bot closed this as completed Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant