Skip to content

fix(synkronus-cli): correct macOS/Linux install script - #1052

Merged
najuna-brian merged 3 commits into
OpenDataEnsemble:devfrom
Lemeri123:fix/unix-install-script
Nov 24, 2026
Merged

najuna-brian merged 3 commits into
OpenDataEnsemble:devfrom
Lemeri123:fix/unix-install-script

Conversation

@Lemeri123

Copy link
Copy Markdown
Contributor

What & Why

The documented macOS/Linux one-liner downloaded a hardcoded Darwin ARM64 asset and tried to untar a bare binary, so installs failed on Intel Macs, Linux, and Linux ARM64. It now detects OS and CPU (with --asset still available as a manual override), downloads the matching bare binary directly, makes it executable, and installs it as synk.

PATH and completion setup no longer depends on zsh or Python: the detected shell config (bash, zsh, fish, or POSIX sh) is updated idempotently, and bash/fish completions are generated alongside the existing zsh completion.

Type of Change

  • Bug fix
  • New feature / enhancement
  • Refactor / cleanup
  • Documentation
  • Chore / other

Component(s) Changed

  • formulus (React Native mobile app)
  • formulus-formplayer (form WebView UI)
  • synkronus (Go backend)
  • synkronus-cli (command-line client)
  • synkronus-portal (web admin UI)
  • desktop (Tauri app)
  • packages (tokens / components)
  • Documentation / DevOps / CI

Testing

  • Added/updated tests
  • Manually tested

Simulated installs for Linux amd64 (bash), macOS ARM64 (zsh), Linux ARM64 (fish), and a manual --asset override; repeated runs keep a single config block. bash -n, git diff --check, and HTTP 200 checks for all four release assets passed.

Checklist

  • Pre-flight checks for changed packages passed (bash -n, git diff --check)
  • Breaking changes (if any) have migration steps (none)
  • Related issue linked, e.g. Closes #123

Closes #1051

@najuna-brian
najuna-brian self-requested a review November 24, 2026 04:03
- Leave a shell config file untouched (with a warning) when it has the synkronus-cli start marker but no end marker, instead of deleting everything after it.
- Collapse blank lines around the replaced block so repeated installs no longer add two extra blank lines each run.

@najuna-brian najuna-brian left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Lemeri123, great work! Tested on Linux with bash, zsh, fish and sh, and it installs cleanly.
I pushed a small follow-up so upsert_block won't drop config lines when the end marker is missing, and won't add blank lines on re-runs.

@najuna-brian
najuna-brian merged commit 912c159 into OpenDataEnsemble:dev Nov 24, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from Triage to Done in ODE Community Board Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

[synkronus-cli] macOS/Linux install script fails: tries to untar a bare binary

2 participants