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. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |