electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.67k stars 1.74k forks source link

Lack of documentation #3222

Closed lfekson closed 5 years ago

lfekson commented 6 years ago

Hello,

my concern is only about lack of documentation. We use Ember and therefore run electron-builder indirectly on MacOS via "nsis" target for "win" platforms. Maybe because of that the initial files like app-update.yml, etc (which ones?) are not created. I've searched but didn't find anything about what exactly should these files include and where exactly they should be located. Is it possible to add some description to your documentation for auto-update configuring for a generic https server?

Thanks in advance.

develar commented 6 years ago

https://www.electron.build/auto-update#file-generated-and-uploaded-in-addition

indirectly on MacOS via "nsis" target for "win" platforms

Do you mean prepackaged?

lfekson commented 6 years ago

No, just a usual command "ember electron:make --platform win32 --arch x64 -prod".

develar commented 6 years ago

Ember uses electron-packager as far I know.

lfekson commented 6 years ago

Sorry, I didn't dig too deep into all the dependencies, but know that electron-forge is the main point. As electron-forge didn't support nsis until recently, we used "squirrel" target. Since electron-forge-maker-nsis appeared it's possible to use "nsis" target. But built-in electron autoUpdate doesn't work with nsis, so we had to search for another way to auto-update. I've installed electon-build and electron-updater as the documentation says and added ...checkAndNotify... When .exe-file runs, it really calls some update and fails because no "app-update.yml" file found. I'd like to try to create needed files manually for a start, but content of the files is not described.

develar commented 6 years ago

Problem is that electron-forge-maker-nsis uses prepackaged approach and files for auto update not generated.

lfekson commented 6 years ago

Is it possible to generate somehow these files? For example calling electron-builder or electron-updater with some options?

stale[bot] commented 5 years ago

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.