We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0f2085b + d3d4428 commit ea1b387Copy full SHA for ea1b387
ci/README.md
@@ -81,7 +81,6 @@ You can disable minification by setting `MINIFY=`.
81
- Will build a standalone release with node and node_modules bundled into `./release-standalone`.
82
- [./ci/build/clean.sh](./build/clean.sh) (`yarn clean`)
83
- Removes all build artifacts.
84
- - Will also `git reset --hard lib/vscode`.
85
- Useful to do a clean build.
86
- [./ci/build/code-server.sh](./build/code-server.sh)
87
- Copied into standalone releases to run code-server with the bundled node binary.
ci/build/build-code-server.sh
@@ -20,8 +20,10 @@ main() {
20
21
if ! [ -f ./lib/coder-cloud-agent ]; then
22
OS="$(uname | tr '[:upper:]' '[:lower:]')"
23
+ set +e
24
curl -fsSL "https://storage.googleapis.com/coder-cloud-releases/agent/latest/$OS/cloud-agent" -o ./lib/coder-cloud-agent
25
chmod +x ./lib/coder-cloud-agent
26
+ set -e
27
fi
28
29
parcel build \
ci/build/clean.sh
@@ -9,7 +9,6 @@ main() {
9
10
pushd lib/vscode
11
git clean -xffd
12
- git reset --hard
13
popd
14
}
15
ci/lib.sh
@@ -38,7 +38,7 @@ arch() {
38
aarch64)
39
echo arm64
40
;;
41
- x86_64)
+ x86_64 | amd64)
42
echo amd64
43
44
*)
ci/steps/release-packages.sh
@@ -7,7 +7,12 @@ main() {
7
NODE_VERSION=v12.18.4
8
NODE_OS="$(uname | tr '[:upper:]' '[:lower:]')"
NODE_ARCH="$(uname -m | sed 's/86_64/64/; s/aarch64/arm64/')"
- curl -L "https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-$NODE_OS-$NODE_ARCH.tar.gz" | tar -xz
+ if [ "$NODE_OS" = "freebsd" ]; then
+ mkdir -p "$PWD/node-$NODE_VERSION-$NODE_OS-$NODE_ARCH/bin"
+ cp "$(which node)" "$PWD/node-$NODE_VERSION-$NODE_OS-$NODE_ARCH/bin"
+ else
+ curl -L "https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-$NODE_OS-$NODE_ARCH.tar.gz" | tar -xz
+ fi
16
PATH="$PWD/node-$NODE_VERSION-$NODE_OS-$NODE_ARCH/bin:$PATH"
17
18
# https://github.com/actions/upload-artifact/issues/38
doc/npm.md
@@ -5,6 +5,7 @@
5
- [Ubuntu, Debian](#ubuntu-debian)
6
- [Fedora, CentOS, RHEL](#fedora-centos-rhel)
- [macOS](#macos)
+- [FreeBSD](#freebsd)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
@@ -40,3 +41,10 @@ npm config set python python2
```bash
xcode-select --install
```
+
45
+## FreeBSD
46
47
+```sh
48
+pkg install -y git python npm-node12 yarn-node12 pkgconf
49
+pkg install -y libsecret libxkbfile libx11 libinotify
50
+```
install.sh
@@ -79,6 +79,17 @@ echo_latest_version() {
79
echo "$version"
80
+echo_npm_postinstall() {
+ echoh
+ cath << EOF
+The npm package has been installed successfully!
+Please extend your path to use code-server:
+ PATH="$NPM_BIN_DIR:\$PATH"
88
+Please run with:
89
+ code-server
90
+EOF
91
+}
92
93
echo_standalone_postinstall() {
94
echoh
95
cath << EOF
@@ -392,6 +403,7 @@ install_npm() {
392
403
echoh "Installing with yarn."
393
404
394
405
"$sh_c" yarn global add code-server --unsafe-perm
406
+ NPM_BIN_DIR="$(yarn global bin)" echo_npm_postinstall
395
407
return
396
408
elif command_exists npm; then
397
409
sh_c="sh_c"
@@ -401,6 +413,7 @@ install_npm() {
401
413
echoh "Installing with npm."
402
414
415
"$sh_c" npm install -g code-server --unsafe-perm
416
+ NPM_BIN_DIR="$(npm bin -g)" echo_npm_postinstall
417
418
419
lib/vscode/package.json
@@ -116,7 +116,6 @@
116
"css-loader": "^3.2.0",
117
"debounce": "^1.0.0",
118
"deemon": "^1.4.0",
119
- "electron": "9.3.3",
120
"eslint": "6.8.0",
121
"eslint-plugin-jsdoc": "^19.1.0",
122
"eslint-plugin-mocha": "8.0.0",
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments