#683
feat: support linux auto-update
Currently the self update functionality breaks if ran on Ubuntu because it has a hard dependency on the mac-only tool launchctl:
for cmd in ("git", "bash", "launchctl", "curl"):
if shutil.which(cmd) is None:
missing.append(cmd)
if missing:
msg = f"Missing required commands: {', '.join(missing)}"
logger.error(msg)
_write_update_status("error", msg)
returnOne solution is to refactor into a shared script with an adapter. I started such a solution that i am using locally but I held from creating a PR before discussing as an issue as instructed in CONTRIBUTING.md
Activity
2@eccentricexit can you see if this matches what you're looking for? I haven't tested it on linux yet https://github.com/Git-on-my-level/codex-autorunner/pull/690
Thanks, I think I'll go with something like the adapter approach, will open a PR and do a release