From f544770cc4b8cba87b1aaaabea41531a5559c287 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Mon, 25 Sep 2023 20:07:11 +0300 Subject: [PATCH] use code cli --- vscode-server/run.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vscode-server/run.sh b/vscode-server/run.sh index 99e230e..fc64a75 100644 --- a/vscode-server/run.sh +++ b/vscode-server/run.sh @@ -10,8 +10,7 @@ printf "$${BOLD}Installing vscode-server!\n" HASH=$(curl -s https://update.code.visualstudio.com/api/commits/stable/server-linux-x64-web | cut -d '"' -f 2) # Download and extract vscode-server tarball -output=$(wget -O /tmp/vscode-server-linux-x64-web.tar.gz https://az764295.vo.msecnd.net/stable/$HASH/vscode-server-linux-x64-web.tar.gz && - tar -xzf /tmp/vscode-server-linux-x64-web.tar.gz -C ${INSTALL_DIR} --strip-components=1 >/dev/null 2>&1) +output=$(curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64' --output vscode_cli.tar.gz && tar -xf vscode_cli.tar.gz -C ${INSTALL_DIR} --strip-components=1 >/dev/null 2>&1) if [ $? -ne 0 ]; then echo "Failed to install vscode-server: $output" @@ -21,4 +20,4 @@ printf "🥳 vscode-server has been installed.\n\n" echo "👷 Running ${INSTALL_DIR}/bin/code serve-web --port ${PORT} --without-connection-token --accept-server-license-terms in the background..." echo "Check logs at ${LOG_PATH}!" -${INSTALL_DIR}/bin/code-server serve-local --port ${PORT} --without-connection-token --accept-server-license-terms --telemetry-level ${TELEMETRY} >${LOG_PATH} 2>&1 & +${INSTALL_DIR}/code serve-web --port ${PORT} --without-connection-token --accept-server-license-terms >${LOG_PATH} 2>&1 &