Skip to content

feat: add one-line install script - #161

Merged
encodeous merged 3 commits into
encodeous:mainfrom
e226li:pr/1-install-ubuntu-systemd
Sep 30, 2026
Merged

encodeous merged 3 commits into
encodeous:mainfrom
e226li:pr/1-install-ubuntu-systemd

Conversation

@e226li

@e226li e226li commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Why

We want easier installs of Nylon.

How

This PR creates install.sh, which installs nylon to bin (as well as a systemd unit optionally) in Linux with support for in-place upgrades. This PR only adds support for systemd/ubuntu 24.04. I'll add support for more distros in a followup.

Use

curl -fsSL https://raw.githubusercontent.com/encodeous/nylon/main/install.sh | sh

Pass options after sh -s --, for example ... | sh -s -- --version v0.4.6.

Option Description
--no-service Do not install the systemd service
--version <tag> Install a specific release, e.g. v0.4.6 (also works for downgrades)
--uninstall Remove the service and binary; keeps /etc/nylon
--help Show usage

Testing

This PR was tested on a fresh install of Ubuntu 24.04 on x64 in QEMU. This PR also adds a CI workflow to test the workflow.

@e226li
e226li force-pushed the pr/1-install-ubuntu-systemd branch 2 times, most recently from 858e185 to 9015ac2 Compare September 30, 2026 02:16
@e226li
e226li force-pushed the pr/1-install-ubuntu-systemd branch from 92e6508 to f5f8a2e Compare September 30, 2026 02:24
@encodeous
encodeous merged commit c9ef85d into encodeous:main Sep 30, 2026
6 checks passed
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.

2 participants