{"id":25603745,"url":"https://github.com/merrit/self_updater","last_synced_at":"2026-06-23T13:32:32.926Z","repository":{"id":54651936,"uuid":"516850174","full_name":"Merrit/self_updater","owner":"Merrit","description":"A self updater for Flutter apps","archived":false,"fork":false,"pushed_at":"2022-08-10T20:11:03.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T17:55:51.722Z","etag":null,"topics":["flutter","updater"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Merrit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-22T18:26:14.000Z","updated_at":"2022-07-27T17:13:49.000Z","dependencies_parsed_at":"2022-08-13T22:50:39.866Z","dependency_job_id":null,"html_url":"https://github.com/Merrit/self_updater","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Merrit/self_updater","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merrit%2Fself_updater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merrit%2Fself_updater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merrit%2Fself_updater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merrit%2Fself_updater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Merrit","download_url":"https://codeload.github.com/Merrit/self_updater/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merrit%2Fself_updater/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34691803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["flutter","updater"],"created_at":"2025-02-21T17:28:38.965Z","updated_at":"2026-06-23T13:32:32.902Z","avatar_url":"https://github.com/Merrit.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- \nThis README describes the package. If you publish this package to pub.dev,\nthis README's contents appear on the landing page for your package.\n\nFor information about how to write a good package README, see the guide for\n[writing package pages](https://dart.dev/guides/libraries/writing-package-pages). \n\nFor general information about developing packages, see the Dart guide for\n[creating packages](https://dart.dev/guides/libraries/create-library-packages)\nand the Flutter guide for\n[developing packages and plugins](https://flutter.dev/developing-packages). \n--\u003e\n\nA self updater for Flutter apps\n\n## Platform Support\n\n| Linux | macOS | Windows |\n| :---: | :---: | :-----: |\n|   ✔️   |   ❌   |    ✔️    |\n\n\n## Features\n\nAutomatically download the lastest release from GitHub releases for the running\nplatform, close the running app, update, relaunch app.\n\n## Getting started\n\nAdd to `pubspec.yaml`\n\n```yml\n  self_updater:\n    git:\n      url: https://github.com/Merrit/self_updater.git\n      ref: \u003ccommit hash\u003e\n```\n\n## Usage\n\nBasic example, this implementation would be better off in something like a\nfunction elsewhere.\n\n```dart\nvoid main() {\n    WidgetsFlutterBinding.ensureInitialized();\n\n    // runApp()\n\n    updateApp();\n}\n\nFuture\u003cvoid\u003e updateApp() async {\n    PackageInfo packageInfo = await PackageInfo.fromPlatform();\n\n    Updater updater = await Updater.initialize(\n      currentVersion: packageInfo.version,\n      updateChannel: UpdateChannel.stable,\n      repoUrl: 'https://github.com/\u003cuser\u003e/\u003crepo\u003e',\n    );\n\n    if (!updater.updateAvailable) return;\n\n    String? updateArchivePath = await updater.downloadUpdate();\n    if (updateArchivePath == null) {\n      print('Downloading update was NOT successful.');\n    } else {\n      await updater.installUpdate(\n        archivePath: updateArchivePath,\n        relaunchApp: true,\n      );\n    }\n}\n```\n\n## Additional information\n\nUpdater is only tested for Development releases so far.\n\nThe updater currently only supports updates from GitHub releases, that adhere to\nSemver versioning as well as releases tagged `latest` for updating to\ndevelopment releases. (Development releases currently require a file called\n`BUILD` in the app directory with the UTC timestamp of when it was built.)\n\nAn in-development app that uses the updater can be seen here:\nhttps://github.com/Merrit/adventure_list\n\nThis package has been created primarily for the author's needs, however if it is\nfound to be useful contributions, issues, ideas, etc are very welcome! 💙\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmerrit%2Fself_updater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmerrit%2Fself_updater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmerrit%2Fself_updater/lists"}