{"id":15719308,"url":"https://github.com/exelban/updater","last_synced_at":"2025-10-13T19:05:18.825Z","repository":{"id":103947713,"uuid":"298670285","full_name":"exelban/updater","owner":"exelban","description":"A tiny package that adds an update process to your project","archived":false,"fork":false,"pushed_at":"2021-12-25T07:59:31.000Z","size":23,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-06T21:08:10.344Z","etag":null,"topics":["github","ios","macos","mechanism","release","swift","update"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/exelban.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-09-25T20:11:33.000Z","updated_at":"2024-07-30T22:20:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"31ec4aed-c64a-4f13-ac82-45bb5308e822","html_url":"https://github.com/exelban/updater","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/exelban/updater","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exelban%2Fupdater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exelban%2Fupdater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exelban%2Fupdater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exelban%2Fupdater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exelban","download_url":"https://codeload.github.com/exelban/updater/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exelban%2Fupdater/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016858,"owners_count":26085884,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"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":["github","ios","macos","mechanism","release","swift","update"],"created_at":"2024-10-03T21:55:19.328Z","updated_at":"2025-10-13T19:05:18.779Z","avatar_url":"https://github.com/exelban.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Updater\n\nA tiny package that adds an update process to your project\n\n## Install\n### Swift Package Manager\n\nAdd `https://github.com/exelban/updater` in the Swift Package Manager tab in the XCode.\n\n## Usage\n\nFirst of all, you need to initialize the Updater. You need to pass providers to the init function that will be used to fetch updates:\n\n```swift\nlet updater = Updater(name: \"Stats\",\n\tproviders: [\n\t\tUpdater.Github(user: \"exelban\", repo: \"stats\", asset: \"Stats.dmg\")\n\t]\n)\n\nupdater.check() { result, error in\n\tif error != nil {\n\t\tprint(\"error updater.check() \\(error!)\")\n\t\treturn\n\t}\n\n\tlet local = Updater.Tag(Bundle.main.object(forInfoDictionaryKey: \"CFBundleShortVersionString\") as! String)\n\tguard let external = result else {\n\t\tprint(\"no external release found\")\n\t\treturn\n\t}\n\n\tif local \u003e= external.tag {\n\t\treturn\n\t}\n\n\tself.updater.download(url, done: { path in\n\t\tself.updater.install(path: path)\n\t})\n}\n```\n\n## Supporting providers\nOriginally this package was designed to work only with Github Releases. But now it supports different providers:\n\n- Github Releases\n- Custom server (TODO)\n\n\n## License\n[MIT License](https://github.com/exelban/updater/blob/master/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexelban%2Fupdater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexelban%2Fupdater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexelban%2Fupdater/lists"}