You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in package.json , 'name' is 'A' , and 'build.productName' is 'B'
after I finished packing. latest.yml is
but the installer package is
It causes a problem when using electron-updater to update my app like this:
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?
The text was updated successfully, but these errors were encountered:
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
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.
electron-builder version is 20.40.2
in package.json , 'name' is 'A' , and 'build.productName' is 'B'
after I finished packing. latest.yml is
but the installer package is
It causes a problem when using electron-updater to update my app like this:
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?
The text was updated successfully, but these errors were encountered: