{"id":13818045,"url":"https://github.com/electron-delta/electron-sample-app","last_synced_at":"2025-04-09T18:08:50.313Z","repository":{"id":37958711,"uuid":"473742838","full_name":"electron-delta/electron-sample-app","owner":"electron-delta","description":"Example of how to integrate @electron-delta/builder","archived":false,"fork":false,"pushed_at":"2023-03-23T14:08:29.000Z","size":2947,"stargazers_count":15,"open_issues_count":7,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T20:05:57.828Z","etag":null,"topics":["autoupdater","delta-updates","electron-builder","electron-delta-updater","electron-quick-start"],"latest_commit_sha":null,"homepage":"https://electrondelta.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/electron-delta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-24T19:18:27.000Z","updated_at":"2025-03-18T09:04:08.000Z","dependencies_parsed_at":"2024-01-18T03:48:35.821Z","dependency_job_id":null,"html_url":"https://github.com/electron-delta/electron-sample-app","commit_stats":null,"previous_names":[],"tags_count":90,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electron-delta%2Felectron-sample-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electron-delta%2Felectron-sample-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electron-delta%2Felectron-sample-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electron-delta%2Felectron-sample-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/electron-delta","download_url":"https://codeload.github.com/electron-delta/electron-sample-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248085178,"owners_count":21045135,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autoupdater","delta-updates","electron-builder","electron-delta-updater","electron-quick-start"],"created_at":"2024-08-04T07:00:29.432Z","updated_at":"2025-04-09T18:08:50.269Z","avatar_url":"https://github.com/electron-delta.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"## Electron sample app\n\nA complete example of an auto-updating app demonstrating the delta updates. The app is built using [electron-builder](https://github.com/electron-userland/electron-builder) and\n[@electron-delta/builder](https://github.com/electron-delta/electron-delta)\n\nDelta auto updates are handled by [@electron-delta/updater](https://github.com/electron-delta/electron-delta-updater)\n\n\n![Delta updates](https://electrondelta.com/assets/delta-downloading.png)\n\n\n## Installation\n\n```bash\ngit clone git@github.com:electron-delta/electron-sample-app.git\ncd electron-sample-app\nnpm install\n\n```\n\n## Testing delta releases\nLet's create the first version of the app.\n1. Open the `src/main.js` and set the hostURL to `http://localhost:5000/`\n2. Open .electron-delta.js and use the following `getPreviousReleases` method\n\n```js\nconst getPreviousReleases = async () =\u003e {\n  return [];\n};\n```\n3. Change the `version` to `1.0.0` and create the distribution files.\n```bash\nnpm version 1.0.0\nnpm run dist\n\n```\n\n4. Now serve the dist files over port 5000.\n```bash\nnpx serve -s dist -p 5000\n```\n\n5. Open .electron-delta.js and use the following `getPreviousReleases` method\n```js\nconst getPreviousReleases = async () =\u003e {\n  return [\n    {\n      version: '1.0.0',\n      url: 'http://localhost:5000/electron-sample-app-1.0.0.exe',\n    }\n  ];\n};\n```\n\n6. Change the `version` to `1.0.1` and create the distribution files.\n\n```bash\nnpm version 1.0.1\nnpm run dist\n```\n\n7. Notice that a new folder is created under `/dist/1.0.1-delta-installers`. Move all those files to `/dist/`. Make this url `http://localhost:5000/delta.json` is working.\n\n8. Now install the `electron-sample-app-1.0.0.exe` app. Your app should be auto updated to 1.0.1 using delta updates.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectron-delta%2Felectron-sample-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felectron-delta%2Felectron-sample-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectron-delta%2Felectron-sample-app/lists"}