8000 feat: one-line install script by bpmct · Pull Request #1924 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: one-line install script #1924

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

Merged
merged 21 commits into from
Jun 1, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove arch linux
  • Loading branch information
bpmct committed May 31, 2022
< 8000 /div> commit f7a5ee8ffffc8d819abea846aa0c11b9e48eb250
18 changes: 0 additions & 18 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,6 @@ main() {
# The .deb and .rpm files are pulled from GitHub.
debian) install_deb ;;
fedora | opensuse) install_rpm ;;
# Arch uses the AUR package which only supports amd64 and arm64 since it
# pulls releases from GitHub so we need to fall back to npm.
arch) install_aur ;;
# We don't have GitHub releases that work on Alpine or FreeBSD so we have no
# choice but to use npm here.
alpine) install_apk ;;
Expand Down Expand Up @@ -333,21 +330,6 @@ install_apk() {
echo_systemd_postinstall apk
}

install_aur() {
echoh "Installing latest from the AUR."
echoh

sh_c mkdir -p "$CACHE_DIR/coder-aur"
sh_c "curl -#fsSL https://aur.archlinux.org/cgit/aur.git/snapshot/coder.tar.gz | tar -xzC $CACHE_DIR/coder-aur --strip-components 1"
echo "+ cd $CACHE_DIR/coder-aur"
if [ ! "${DRY_RUN-}" ]; then
cd "$CACHE_DIR/coder-aur"
fi
sh_c makepkg -si

echo_systemd_postinstall AUR
}

install_standalone() {
echoh "Installing v$VERSION of the $ARCH release from GitHub."
echoh
Expand Down
0