Skip to content

Build for Linux and check rex in install - #8

Merged
frinfo702 merged 2 commits into
mainfrom
feat/linux
Oct 30, 2026
Merged

frinfo702 merged 2 commits into
mainfrom
feat/linux

Conversation

@frinfo702

Copy link
Copy Markdown
Owner

Summary

  • Build Linux binaries. The viewer runs without Rex; the action in Rex stays macOS-only.
  • rexdiff install now checks for the rex command before it writes anything.
  • install.sh picks the macOS or Linux archive, and checks the checksum with shasum or sha256sum.
  • Add a Linux test job to CI.

Notes

  • Follow-up to Install with curl from the latest release #7, which added the curl install and the stable archive names.
  • Verified with a GoReleaser snapshot for darwin/linux arm64/amd64. go vet and go test -race ./... pass on macOS and on Linux (in a container). install.sh installed and ran the binary on both. On Linux, rexdiff install fails cleanly without rex and writes the files with a fake rex.

The viewer runs without Rex, so release Linux binaries too. The install
command is the only Rex integration; it now checks that the rex command
exists before it writes rexdiff.lua.

install.sh picks the macOS or Linux archive, and checks the checksum with
shasum or sha256sum.
fakePath linked git but kept /bin and /usr/bin in PATH. On the Ubuntu
runner, that found the real gh in /usr/bin, but the test wants the
missing-tool error. Link cat too, and use only the test directory.
@frinfo702
frinfo702 merged commit f7b6ce1 into main Oct 30, 2026
4 checks passed
@frinfo702
frinfo702 deleted the feat/linux branch November 7, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant