Add auto install script by nhooyr · Pull Request #1701 · coder/code-server

~/src/cdr/code-server:auto-install$ ./install.sh --help
./install.sh [-d] [-s] [-p <static-install-prefix>]

Installs code-server on any macOS or Linux system.

If ran on Ubuntu, Debian or Raspbian then the GitHub releases v3.3.1
deb package will be fetched and installed.

If ran on Fedora, CentOS, RHEL or openSUSE then the GitHub releases v3.3.1
rpm package will be fetched and installed.

If ran on macOS and Homebrew is installed then the Homebrew code-server
package will be installed. However, if Homebrew is not installed then
v3.3.1 of the macOS static archive on GitHub releases will be installed
into /usr/local/lib/code-server-3.3.1.

If ran on Arch Linux, then the code-server AUR package will be installed.

If ran on an unsupported architecture the npm package will be installed
with yarn or npm. Only amd64 and arm64 are currently supported.

If ran on any other Linux distro, v3.3.1 of the linux static archive on GitHub
releases will be installed into /usr/local/lib/code-server-3.3.1.

  -d Enables a dry run where where the steps that would have taken place
     are printed but do not actually execute.

  -s Forces the installation of a static release into /usr/local/lib/code-server-3.3.1
     Set the -p flag to change the installation prefix from /usr/local/lib

  -p Sets the installation prefix for a static release install.