Skip to content
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 homebrew support
  • Loading branch information
bpmct committed May 31, 2022
commit 2724aefb7595d1b391d819fbaf7a628a00701a8b
33 changes: 3 additions & 30 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,6 @@ Then run with:
EOF
}

echo_brew_postinstall() {
echoh
cath << EOF
Brew release has been installed.

Run with:
coder
EOF
}

echo_systemd_postinstall() {
echoh
cath << EOF
Expand Down Expand Up @@ -238,17 +228,9 @@ main() {
DISTRO=${DISTRO:-$(distro)}

case $DISTRO in
# macOS uses brew when available and falls back to standalone.
macos)
BREW_PATH="${BREW_PATH-brew}"
if command_exists "$BREW_PATH"; then
install_brew
else
echoh "Homebrew not installed."
echoh "Falling back to standalone installation."
install_standalone
fi
;;
# macOS uses the standalone installation for now.
# Homebrew support is planned. See: https://github.com/coder/coder/issues/1925
macos) install_standalone ;;
# The .deb and .rpm files are pulled from GitHub.
debian) install_deb ;;
fedora | opensuse) install_rpm ;;
Expand Down Expand Up @@ -318,15 +300,6 @@ fetch() {
sh_c mv "$FILE.incomplete" "$FILE"
}

install_brew() {
echoh "Installing latest from Homebrew."
echoh

sh_c "$BREW_PATH" install coder

echo_brew_postinstall
}

install_deb() {
echoh "Installing v$VERSION of the $ARCH deb package from GitHub."
echoh
Expand Down