File tree 10 files changed +14278
-341
lines changed
10 files changed +14278
-341
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ You can disable minification by setting `MINIFY=`.
81
81
- Will build a standalone release with node and node_modules bundled into ` ./release-standalone ` .
82
82
- [ ./ci/build/clean.sh] ( ./build/clean.sh ) (` yarn clean ` )
83
83
- Removes all build artifacts.
84
- - Will also ` git reset --hard lib/vscode ` .
85
84
- Useful to do a clean build.
86
85
- [ ./ci/build/code-server.sh] ( ./build/code-server.sh )
87
86
- Copied into standalone releases to run code-server with the bundled node binary.
Original file line number Diff line number Diff line change @@ -20,8 +20,10 @@ main() {
20
20
21
21
if ! [ -f ./lib/coder-cloud-agent ]; then
22
22
OS=" $( uname | tr ' [:upper:]' ' [:lower:]' ) "
23
+ set +e
23
24
curl -fsSL " https://storage.googleapis.com/coder-cloud-releases/agent/latest/$OS /cloud-agent" -o ./lib/coder-cloud-agent
24
25
chmod +x ./lib/coder-cloud-agent
26
+ set -e
25
27
fi
26
28
27
29
parcel build \
Original file line number Diff line number Diff line change 9
9
10
10
pushd lib/vscode
11
11
git clean -xffd
12
- git reset --hard
13
12
popd
14
13
}
15
14
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ arch() {
38
38
aarch64)
39
39
echo arm64
40
40
;;
41
- x86_64)
41
+ x86_64 | amd64 )
42
42
echo amd64
43
43
;;
44
44
* )
Original file line number Diff line number Diff line change @@ -7,7 +7,12 @@ main() {
7
7
NODE_VERSION=v12.18.4
8
8
NODE_OS=" $( uname | tr ' [:upper:]' ' [:lower:]' ) "
9
9
NODE_ARCH=" $( uname -m | sed ' s/86_64/64/; s/aarch64/arm64/' ) "
10
- curl -L " https://nodejs.org/dist/$NODE_VERSION /node-$NODE_VERSION -$NODE_OS -$NODE_ARCH .tar.gz" | tar -xz
10
+ if [ " $NODE_OS " = " freebsd" ]; then
11
+ mkdir -p " $PWD /node-$NODE_VERSION -$NODE_OS -$NODE_ARCH /bin"
12
+ cp " $( which node) " " $PWD /node-$NODE_VERSION -$NODE_OS -$NODE_ARCH /bin"
13
+ else
14
+ curl -L " https://nodejs.org/dist/$NODE_VERSION /node-$NODE_VERSION -$NODE_OS -$NODE_ARCH .tar.gz" | tar -xz
15
+ fi
11
16
PATH=" $PWD /node-$NODE_VERSION -$NODE_OS -$NODE_ARCH /bin:$PATH "
12
17
13
18
# https://github.com/actions/upload-artifact/issues/38
Original file line number Diff line number Diff line change 5
5
- [ Ubuntu, Debian] ( #ubuntu-debian )
6
6
- [ Fedora, CentOS, RHEL] ( #fedora-centos-rhel )
7
7
- [ macOS] ( #macos )
8
+ - [ FreeBSD] ( #freebsd )
8
9
9
10
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
10
11
@@ -40,3 +41,10 @@ npm config set python python2
40
41
``` bash
41
42
xcode-select --install
42
43
```
44
+
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
+ ```
Original file line number Diff line number Diff line change @@ -79,6 +79,17 @@ echo_latest_version() {
79
79
echo " $version "
80
80
}
81
81
82
+ echo_npm_postinstall () {
83
+ echoh
84
+ cath << EOF
85
+ The npm package has been installed successfully!
86
+ Please extend your path to use code-server:
87
+ PATH="$NPM_BIN_DIR :\$ PATH"
88
+ Please run with:
89
+ code-server
90
+ EOF
91
+ }
92
+
82
93
echo_standalone_postinstall () {
83
94
echoh
84
95
cath << EOF
@@ -392,6 +403,7 @@ install_npm() {
392
403
echoh " Installing with yarn."
393
404
echoh
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
echoh
403
415
" $sh_c " npm install -g code-server --unsafe-perm
416
+ NPM_BIN_DIR=" $( npm bin -g) " echo_npm_postinstall
404
417
return
405
418
fi
406
419
echoh
Original file line number Diff line number Diff line change 116
116
"css-loader" : " ^3.2.0" ,
117
117
"debounce" : " ^1.0.0" ,
118
118
"deemon" : " ^1.4.0" ,
119
- "electron" : " 9.3.3" ,
120
119
"eslint" : " 6.8.0" ,
121
120
"eslint-plugin-jsdoc" : " ^19.1.0" ,
122
121
"eslint-plugin-mocha" : " 8.0.0" ,
You can’t perform that action at this time.
0 commit comments