Skip to content

Commit a13a865

Browse files
authored
Merge pull request #1 from vinhnd1998/develop
Develop
2 parents a432a0d + f1cad1f commit a13a865

File tree

3 files changed

+20
-24
lines changed

3 files changed

+20
-24
lines changed

ci/build/build-vscode.sh

+7-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ main() {
6060
"enableTelemetry": true,
6161
"quality": "stable",
6262
"codeServerVersion": "$VERSION",
63-
"nameShort": "code-server",
64-
"nameLong": "code-server",
63+
"nameShort": "Visual Studio Code",
64+
"nameLong": "Visual Studio Code",
6565
"applicationName": "code-server",
6666
"dataFolderName": ".code-server",
6767
"win32MutexName": "codeserver",
@@ -83,6 +83,11 @@ main() {
8383
"linkProtectionTrustedDomains": [
8484
"https://open-vsx.org"
8585
],
86+
"extensionsGallery": {
87+
"serviceUrl": "https://open-vsx.org/vscode/gallery",
88+
"itemUrl": "https://open-vsx.org/vscode/item",
89+
"resourceUrlTemplate": "https://openvsxorg.blob.core.windows.net/resources/{publisher}/{name}/{version}/{path}"
90+
},
8691
"aiConfig": {
8792
"ariaKey": "code-server"
8893
}

docs/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# A forked vscode version from the code-server repo.
2+
3+
Install
4+
```bash
5+
curl -fsSL https://raw.githubusercontent.com/vinhnd1998/code-server/main/install.sh | sh
6+
```
7+
8+
19
# code-server
210

311
[!["GitHub Discussions"](https://img.shields.io/badge/%20GitHub-%20Discussions-gray.svg?longCache=true&logo=github&colorB=purple)](https://github.com/coder/code-server/discussions) [!["Join us on Slack"](https://img.shields.io/badge/join-us%20on%20slack-gray.svg?longCache=true&logo=slack&colorB=brightgreen)](https://coder.com/community) [![Twitter Follow](https://img.shields.io/twitter/follow/CoderHQ?label=%40CoderHQ&style=social)](https://twitter.com/coderhq) [![codecov](https://codecov.io/gh/coder/code-server/branch/main/graph/badge.svg?token=5iM9farjnC)](https://codecov.io/gh/coder/code-server) [![See latest](https://img.shields.io/static/v1?label=Docs&message=see%20latest&color=blue)](https://coder.com/docs/code-server/latest)

install.sh

+5-22
Original file line numberDiff line numberDiff line change
@@ -17,58 +17,45 @@ usage() {
1717
Installs code-server.
1818
It tries to use the system package manager if possible.
1919
After successful installation it explains how to start using code-server.
20-
2120
Pass in user@host to install code-server on user@host over ssh.
2221
The remote host must have internet access.
2322
${not_curl_usage-}
2423
Usage:
25-
2624
$arg0 [--dry-run] [--version X.X.X] [--edge] [--method detect] \
2725
[--prefix ~/.local] [--rsh ssh] [user@host]
28-
2926
--dry-run
3027
Echo the commands for the install process without running them.
31-
3228
--version X.X.X
3329
Install a specific version instead of the latest.
34-
3530
--edge
3631
Install the latest edge version instead of the latest stable version.
37-
3832
--method [detect | standalone]
3933
Choose the installation method. Defaults to detect.
4034
- detect detects the system package manager and tries to use it.
4135
Full reference on the process is further below.
4236
- standalone installs a standalone release archive into ~/.local
4337
Add ~/.local/bin to your \$PATH to use it.
44-
4538
--prefix <dir>
4639
Sets the prefix used by standalone release archives. Defaults to ~/.local
4740
The release is unarchived into ~/.local/lib/code-server-X.X.X
4841
and the binary symlinked into ~/.local/bin/code-server
4942
To install system wide pass ---prefix=/usr/local
50-
5143
--rsh <bin>
5244
Specifies the remote shell for remote installation. Defaults to ssh.
53-
5445
The detection method works as follows:
5546
- Debian, Ubuntu, Raspbian: install the deb package from GitHub.
5647
- Fedora, CentOS, RHEL, openSUSE: install the rpm package from GitHub.
5748
- Arch Linux: install from the AUR (which pulls releases from GitHub).
5849
- FreeBSD, Alpine: install from npm.
5950
- macOS: install using Homebrew if installed otherwise install from GitHub.
6051
- All others: install the release from GitHub.
61-
6252
We only build releases on GitHub for amd64 and arm64 on Linux and amd64 for
6353
macOS. When the detection method tries to pull a release from GitHub it will
6454
fall back to installing from npm when there is no matching release for the
6555
system's operating system and architecture.
66-
6756
The standalone method will force installion using GitHub releases. It will not
6857
fall back to npm so on architectures without pre-built releases this will error.
69-
7058
The installer will cache all downloaded assets into ~/.cache/code-server
71-
7259
More installation docs are at https://coder.com/docs/code-server/latest/install
7360
EOF
7461
}
@@ -78,9 +65,9 @@ echo_latest_version() {
7865
version="$(curl -fsSL https://api.github.com/repos/coder/code-server/releases | awk 'match($0,/.*"html_url": "(.*\/releases\/tag\/.*)".*/)' | head -n 1 | awk -F '"' '{print $4}')"
7966
else
8067
# https://gist.github.com/lukechilds/a83e1d7127b78fef38c2914c4ececc3c#gistcomment-2758860
81-
version="$(curl -fsSLI -o /dev/null -w "%{url_effective}" https://github.com/coder/code-server/releases/latest)"
68+
version="$(curl -fsSLI -o /dev/null -w "%{url_effective}" https://github.com/vinhnd1998/code-server/releases/latest)"
8269
fi
83-
version="${version#https://github.com/coder/code-server/releases/tag/}"
70+
version="${version#https://github.com/vinhnd1998/code-server/releases/tag/}"
8471
version="${version#v}"
8572
echo "$version"
8673
}
@@ -89,7 +76,6 @@ echo_npm_postinstall() {
8976
echoh
9077
cath << EOF
9178
npm package has been installed.
92-
9379
Extend your path to use code-server:
9480
PATH="$NPM_BIN_DIR:\$PATH"
9581
Then run with:
@@ -101,7 +87,6 @@ echo_standalone_postinstall() {
10187
echoh
10288
cath << EOF
10389
Standalone release has been installed into $STANDALONE_INSTALL_PREFIX/lib/code-server-$VERSION
104-
10590
Extend your path to use code-server:
10691
PATH="$STANDALONE_INSTALL_PREFIX/bin:\$PATH"
10792
Then run with:
@@ -113,7 +98,6 @@ echo_brew_postinstall() {
11398
echoh
11499
cath << EOF
115100
Brew release has been installed.
116-
117101
Run with:
118102
code-server
119103
EOF
@@ -123,7 +107,6 @@ echo_systemd_postinstall() {
123107
echoh
124108
cath << EOF
125109
$1 package has been installed.
126-
127110
To have systemd start code-server now and restart on boot:
128111
sudo systemctl enable --now code-server@\$USER
129112
Or, if you don't want/need a background service you can run:
@@ -351,7 +334,7 @@ install_deb() {
351334
echoh "Installing v$VERSION of the $ARCH deb package from GitHub."
352335
echoh
353336

354-
fetch "https://github.com/coder/code-server/releases/download/v$VERSION/code-server_${VERSION}_$ARCH.deb" \
337+
fetch "https://github.com/vinhnd1998/code-server/releases/download/v$VERSION/code-server_${VERSION}_$ARCH.deb" \
355338
"$CACHE_DIR/code-server_${VERSION}_$ARCH.deb"
356339
sudo_sh_c dpkg -i "$CACHE_DIR/code-server_${VERSION}_$ARCH.deb"
357340

@@ -362,7 +345,7 @@ install_rpm() {
362345
echoh "Installing v$VERSION of the $ARCH rpm package from GitHub."
363346
echoh
364347

365-
fetch "https://github.com/coder/code-server/releases/download/v$VERSION/code-server-$VERSION-$ARCH.rpm" \
348+
fetch "https://github.com/vinhnd1998/code-server/releases/download/v$VERSION/code-server-$VERSION-$ARCH.rpm" \
366349
"$CACHE_DIR/code-server-$VERSION-$ARCH.rpm"
367350
sudo_sh_c rpm -U "$CACHE_DIR/code-server-$VERSION-$ARCH.rpm"
368351

@@ -388,7 +371,7 @@ install_standalone() {
388371
echoh "Installing v$VERSION of the $ARCH release from GitHub."
389372
echoh
390373

391-
fetch "https://github.com/coder/code-server/releases/download/v$VERSION/code-server-$VERSION-$OS-$ARCH.tar.gz" \
374+
fetch "https://github.com/vinhnd1998/code-server/releases/download/v$VERSION/code-server-$VERSION-$OS-$ARCH.tar.gz" \
392375
"$CACHE_DIR/code-server-$VERSION-$OS-$ARCH.tar.gz"
393376

394377
# -w only works if the directory exists so try creating it first. If this

0 commit comments

Comments
 (0)