{"id":24789120,"url":"https://github.com/gotbordom/selfupdate","last_synced_at":"2025-07-16T04:34:40.341Z","repository":{"id":129318839,"uuid":"332244029","full_name":"gotbordom/SelfUpdate","owner":"gotbordom","description":"This was a coding interview problem asking to write a self updating application.","archived":false,"fork":false,"pushed_at":"2021-01-24T09:08:17.000Z","size":41,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T12:17:30.084Z","etag":null,"topics":["cpp","google-test"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gotbordom.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":"2021-01-23T15:35:20.000Z","updated_at":"2025-01-17T00:10:41.000Z","dependencies_parsed_at":"2023-05-05T23:44:45.746Z","dependency_job_id":null,"html_url":"https://github.com/gotbordom/SelfUpdate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gotbordom/SelfUpdate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotbordom%2FSelfUpdate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotbordom%2FSelfUpdate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotbordom%2FSelfUpdate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotbordom%2FSelfUpdate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gotbordom","download_url":"https://codeload.github.com/gotbordom/SelfUpdate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotbordom%2FSelfUpdate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265481845,"owners_count":23773963,"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":["cpp","google-test"],"created_at":"2025-01-29T17:16:10.419Z","updated_at":"2025-07-16T04:34:40.329Z","avatar_url":"https://github.com/gotbordom.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SelfUpdate\nThe goal here is learning about auto updating applications\n\n# Developer\nName:  Anthony\nEmail: Anthony.Tracy@colorado.edu\n\n# Version Definition\nMajor - For larger overhauls, things like Changing workflows, etc.\nMinor - For adding features, things like new buttons, etc.\nPatch - For fixing bugs, logic, etc.\n\n# How to compile\nSo far it has been tested with Windows 10 and Ubuntu 16.\nWindows:\nInstall Visual Studio compiler (this has been tested with VS14)\ncd (path/to/superDirectory)/build/\ncmake ..\ncmake --build\ncd \u003cpath/to/superDirectory\u003e/build/Debug/\n./SelfUpdate\u003cVersionNumber\u003e.exe\n\nWindows:\ncd (path/to/superDirectory)/build/\ncmake ..\nmake -j4\ncd \u003cpath/to/superDirectory\u003e/build/\n./SelfUpdate\u003cVersionNumber\u003e.exe\n\n\n# The idea (First stages)\nStart with something simple: An app that prints \"Hello World: Your Current Version is: Major.Minor.SubMinor\n1. On Startup:\n   1.1 Start Updater\n       - Checks if there is a newer version in a local subdirectory \"versions\"\n          False - Cleanup curr directory to remove older version and check that old version did shut down correctly\n          True - Start newest version, verify it is running, kill self\n       - Updater should be a on it's own thread and checking for updates at some time interval from github repo (since it's free, \n         in production it would be bettter to have a CI system like teamcity pushing artifacts with recent builds which this would instead check)\n       - Let updater using something like libcurl (since it can be compiled from source for linux, windows, etc)\n       -  \n       \n2. Open some type of UI\n   2.1 Print: Hello World! Your current software version is: Major.Minor.Subminor\n       - While the app is running the background thread will be running Updater which query the webpage every N hours (N is undecided atm)\n       - If a newer version occurs, ask user if they would like to update \n         - If Yes - Have the app call updater.update() with just downloads the newer version into the version subdirectory, starts it,\n           and ends itself\n         - If no - let user keep doing what they are doing, the updater will ask again later (like windows) \n           -- NOTE: This could get annoying, perhaps have a flag that indicates user declined update. Just meaning when they close the app it will update on next startup\n# The next Idea (Second stage) - I don't want to think about this fully till stage one has UTs and is working\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgotbordom%2Fselfupdate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgotbordom%2Fselfupdate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgotbordom%2Fselfupdate/lists"}