This repo contains the bare minimum code to have an auto-updating Electron app using electron-updater
with releases stored on a plain HTTP server.
-
For macOS, you will need a code-signing certificate.
Install Xcode (from the App Store), then follow these instructions to make sure you have a "Mac Developer" certificate. If you'd like to export the certificate (for automated building, for instance) you can. You would then follow these instructions.
-
Setting you Gitlab-CI and edit package.json build scripts fron your platforms
-
Pushing new code, and install last build
-
Open the installed version of the app and see that it updates itself.
any updates with artifact URL on private repo? looks like
https://gitlab.com/_example_repo_/-/jobs/artifacts/master/download/dist?job=build
and
https://gitlab.com/_example_repo_/-/jobs/artifacts/master/browse/dist?job=build
is still working.
And looks like the
PRIVATE-TOKEN
header only works if we use it via API like this:curl --output artifacts.zip --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/jobs/42/artifacts"
Can the
electron-updater
just unzip the downloaded files if we use the API?