Reputation: 7966
I'm using electron-builder to package an app for Windows/MacOS & trying to configure auto-update with the electron-publisher-s3 package.
The default naming for the published Windows artifact is ${productName}_Setup_${version}.${ext}
, or foo_Setup_1.0.0.exe
This means that the download link, dl.example.com/win/foo_Setup_1.0.0.exe
will change each update.
My first guess is to just remove dynamic variables from the artifact naming pattern, but I'm assuming the version # is there for a reason & don't want to break anything.
Is there a way to manage a stable download link, like dl.example.com/win/latest
, dl.example.com/win/beta
, etc. ?
Upvotes: 2
Views: 665
Reputation: 995
Currently, there are no ready solutions. You can use Amazon S3 Routing Rules to redirect win/latest
to win/foo_Setup_1.0.0.exe
(and you need to change this rule after each release).
I suggest you to file issue to electron-builder and someday it will be implemented for you. i.e. electron-builder will automatically create and maintain such rules for you.
Upvotes: 3