File tree Expand file tree Collapse file tree 12 files changed +35
-111
lines changed Expand file tree Collapse file tree 12 files changed +35
-111
lines changed Original file line number Diff line number Diff line change 55
55
name : npm-package
56
56
path : ./release-npm-package
57
57
- name : Run ./ci/steps/release-packages.sh
58
- uses : ./ci/container
58
+ uses : ./ci/container/centos
59
59
with :
60
60
args : ./ci/steps/release-packages.sh
61
61
- name : Upload release artifacts
75
75
name : npm-package
76
76
path : ./release-npm-package
77
77
- name : Run ./ci/steps/release-packages.sh
78
- uses : ./ci/container/arm64
78
+ uses : ./ci/container/centos
79
79
with :
80
80
args : ./ci/steps/release-packages.sh
81
81
- name : Upload release artifacts
94
94
with :
95
95
name : npm-package
96
96
path : ./release-npm-package
97
- - run : brew unlink node@12
98
- - run : brew install node
99
97
- run : ./ci/steps/release-packages.sh
100
98
env :
101
99
# Otherwise we get rate limited when fetching the ripgrep binary.
Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ release-packages/
9
9
release-gcp /
10
10
release-images /
11
11
node_modules
12
+ node- *
Original file line number Diff line number Diff line change @@ -17,14 +17,6 @@ main() {
17
17
mkdir -p " $RELEASE_PATH /bin"
18
18
rsync ./ci/build/code-server.sh " $RELEASE_PATH /bin/code-server"
19
19
rsync " $node_path " " $RELEASE_PATH /lib/node"
20
- if [[ $OS == " linux" ]]; then
21
- bundle_dynamic_lib libstdc++
22
- bundle_dynamic_lib libgcc_s
23
- elif [[ $OS == " macos" ]]; then
24
- bundle_dynamic_lib libicui18n
25
- bundle_dynamic_lib libicuuc
26
- bundle_dynamic_lib libicudata
27
- fi
28
20
29
21
ln -s " ./bin/code-server" " $RELEASE_PATH /code-server"
30
22
ln -s " ./lib/node" " $RELEASE_PATH /node"
@@ -33,17 +25,4 @@ main() {
33
25
yarn --production --frozen-lockfile
34
26
}
35
27
36
- bundle_dynamic_lib () {
37
- local lib_name=" $1 "
38
- local lib_path
39
-
40
- if [[ $OS == " linux" ]]; then
41
- lib_path=" $( ldd " $RELEASE_PATH /lib/node" | grep " $lib_name " | awk ' {print $3 }' ) "
42
- elif [[ $OS == " macos" ]]; then
43
- lib_path=" $( otool -L " $RELEASE_PATH /lib/node" | grep " $lib_name " | awk ' {print $1 }' ) "
44
- fi
45
-
46
- cp " $lib_path " " $RELEASE_PATH /lib"
47
- }
48
-
49
28
main " $@ "
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ _realpath() {
12
12
13
13
# See https://github.com/cdr/code-server/issues/1537
14
14
if [ " $( uname) " = " Darwin" ]; then
15
- # We read the symlink, which may be relative from $1.
16
15
script=" $1 "
17
16
if [ -L " $script " ]; then
18
17
while [ -L " $script " ]; do
18
+ # We recursively read the symlink, which may be relative from $script.
19
19
script=" $( readlink " $script " ) "
20
20
cd " $( dirname " $script " ) "
21
21
done
@@ -32,9 +32,4 @@ _realpath() {
32
32
}
33
33
34
34
ROOT=" $( dirname " $( dirname " $( _realpath " $0 " ) " ) " ) "
35
- if [ " $( uname) " = " Linux" ]; then
36
- export LD_LIBRARY_PATH=" $ROOT /lib:${LD_LIBRARY_PATH-} "
37
- elif [ " $( uname) " = " Darwin" ]; then
38
- export DYLD_LIBRARY_PATH=" $ROOT /lib:${DYLD_LIBRARY_PATH-} "
39
- fi
40
35
exec " $ROOT /lib/node" " $ROOT " " $@ "
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ main() {
15
15
./release-standalone/bin/code-server --extensions-dir " $EXTENSIONS_DIR " --install-extension ms-python.python
16
16
local installed_extensions
17
17
installed_extensions=" $( ./release-standalone/bin/code-server --extensions-dir " $EXTENSIONS_DIR " --list-extensions 2>&1 ) "
18
- if [[ $installed_extensions != " ms-python.python" ]]; then
18
+ if [[ " $installed_extensions " != " info Using config file ~/.config/code-server/config.yaml
19
+ ms-python.python" ]]; then
19
20
echo " Unexpected output from listing extensions:"
20
21
echo " $installed_extensions "
21
22
exit 1
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ RUN ARCH="$(dpkg --print-architecture)" && \
43
43
# rm -R shellcheck*
44
44
45
45
# Install Go dependencies
46
- RUN ARCH="$(dpkg --print-architecture )" && \
46
+ RUN ARCH="$(uname -m | sed 's/x86_64/amd64/; s/aarch64/arm64/' )" && \
47
47
curl -fsSL "https://dl.google.com/go/go1.14.3.linux-$ARCH.tar.gz" | tar -C /usr/local -xz
48
48
ENV PATH=/usr/local/go/bin:/root/go/bin:$PATH
49
49
ENV GO111MODULE=on
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ FROM centos:7
2
+
3
+ RUN curl -sL https://rpm.nodesource.com/setup_14.x | bash - && \
4
+ yum install -y nodejs &&
5
+ npm install -g yarn
6
+
7
+ RUN yum groupinstall -y 'Development Tools'
8
+ RUN yum install -y python2 libsecret-devel libX11-devel libxkbfile-devel
9
+
10
+ RUN npm config set python python2
11
+
12
+ RUN yum install -y epel-release && yum install -y jq
13
+ RUN yum install -y rsync
14
+
15
+ # Copied from ../Dockerfile
16
+ # Install Go dependencies
17
+ RUN ARCH="$(uname -m | sed 's/x86_64/amd64/; s/aarch64/arm64/')" && \
18
+ curl -fsSL "https://dl.google.com/go/go1.14.3.linux-$ARCH.tar.gz" | tar -C /usr/local -xz
19
+ ENV PATH=/usr/local/go/bin:/root/go/bin:$PATH
20
+ ENV GO111MODULE=on
21
+ RUN go get mvdan.cc/sh/v3/cmd/shfmt
22
+ RUN go get github.com/goreleaser/nfpm/cmd/nfpm
Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ set -euo pipefail
4
4
main () {
5
5
cd " $( dirname " $0 " ) /../.."
6
6
7
+ if [[ " $OSTYPE " == darwin* ]]; then
8
+ curl -L https://nodejs.org/dist/v14.4.0/node-v14.4.0-darwin-x64.tar.gz | tar -xz
9
+ PATH=" $PATH :node-v14.4.0-darwin-x64/bin"
10
+ fi
11
+
7
12
# https://github.com/actions/upload-artifact/issues/38
8
13
tar -xzf release-npm-package/package.tar.gz
9
14
You can’t perform that action at this time.
0 commit comments