-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Add auto install script #1701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add auto install script #1701
Conversation
c2230c4
to
7e50de2
Compare
~/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.
b6684bd
to
a3033bc
Compare
Need to add to README.md and guide.md
In the next release we'll add installation over SSH support and then deprecate sshcode.
18164f7
to
4e8b1b8
Compare
4e8b1b8
to
7ea56f6
Compare
- I think it'd be good to switch to long style flags and remove
getopts
.
- Also good idea to remove the hard coded version and always fetch latest in case people download and store the script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is dope. Love the dry run.
Agreed about the long option names, those are my preference in general. Fetching the latest version also seems like a good idea.
7ea56f6
to
92af87a
Compare
And check for libc and libcxx #1706
92af87a
to
8b6894c
Compare
@code-asher Please re-review the new changes.
Last thing I need to take care of is #1706
Now that we know we have compat for glibc v2.17 I don't think it's worth the complexity in the install script to detect for anything below that since that's already 8 years old. And there is no other dependency anymore.
b51e4b5
to
2d96744
Compare
4bfc7fb
to
1a195c5
Compare
5127526
to
665ca01
Compare
More clear as discussed in PR.
32b64b2
to
fa45fd0
Compare
2e83808
to
ecf176e
Compare
ecf176e
to
69ad529
Compare
No description provided.