libertyer.blogg.se

Create installer for electron app
Create installer for electron app








create installer for electron app

This requires you to have an Apple Developer account, and two signing certificates: Developer ID Application and Developer ID Installer. If you’re building your app for Mac, auto-updating will not work unless you code-sign your app. git commit -m "Create auto-updating app" git push -u origin master Code signing for Mac gitignore file, and then commit the rest of your code: git add. Add “node_modules” and “dist” (the directory where packaged code will be placed) to your. Releases won’t appear if the repo is empty. The deploy script will package the app, and create a new release on GitHub.īefore we run the deploy script, we need to push our source code to GitHub.

create installer for electron app

The build script will package the application but skip deployment, for testing purposes. If you’re on Windows, leave out the -mac flag, as you cannot build for Mac and this will throw an error. Let’s now add scripts to package.json to build and deploy the app with electron-builder: "build": "electron-builder build -mac -win -publish never", "deploy": "electron-builder build -mac -win -publish always" To initialize git and set the remote to the repository you just created run the following two commands: git init git remote add origin /.git In main.js import “autoUpdater” from electron-updater: const , Now that we have a working app, we’re ready to add auto-updating capabilities.










Create installer for electron app