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 5555 name : npm-package
5656 path : ./release-npm-package
5757 - name : Run ./ci/steps/release-packages.sh
58- uses : ./ci/container
58+ uses : ./ci/container/centos
5959 with :
6060 args : ./ci/steps/release-packages.sh
6161 - name : Upload release artifacts
7575 name : npm-package
7676 path : ./release-npm-package
7777 - name : Run ./ci/steps/release-packages.sh
78- uses : ./ci/container/arm64
78+ uses : ./ci/container/centos
7979 with :
8080 args : ./ci/steps/release-packages.sh
8181 - name : Upload release artifacts
9494 with :
9595 name : npm-package
9696 path : ./release-npm-package
97- - run : brew unlink node@12
98- - run : brew install node
9997 - run : ./ci/steps/release-packages.sh
10098 env :
10199 # 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/
99release-gcp /
1010release-images /
1111node_modules
12+ node- *
Original file line number Diff line number Diff line change @@ -17,14 +17,6 @@ main() {
1717 mkdir -p " $RELEASE_PATH /bin"
1818 rsync ./ci/build/code-server.sh " $RELEASE_PATH /bin/code-server"
1919 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
2820
2921 ln -s " ./bin/code-server" " $RELEASE_PATH /code-server"
3022 ln -s " ./lib/node" " $RELEASE_PATH /node"
@@ -33,17 +25,4 @@ main() {
3325 yarn --production --frozen-lockfile
3426}
3527
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-
4928main " $@ "
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ _realpath() {
1212
1313 # See https://github.com/cdr/code-server/issues/1537
1414 if [ " $( uname) " = " Darwin" ]; then
15- # We read the symlink, which may be relative from $1.
1615 script=" $1 "
1716 if [ -L " $script " ]; then
1817 while [ -L " $script " ]; do
18+ # We recursively read the symlink, which may be relative from $script.
1919 script=" $( readlink " $script " ) "
2020 cd " $( dirname " $script " ) "
2121 done
@@ -32,9 +32,4 @@ _realpath() {
3232}
3333
3434ROOT=" $( 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
4035exec " $ROOT /lib/node" " $ROOT " " $@ "
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ main() {
1515 ./release-standalone/bin/code-server --extensions-dir " $EXTENSIONS_DIR " --install-extension ms-python.python
1616 local installed_extensions
1717 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
1920 echo " Unexpected output from listing extensions:"
2021 echo " $installed_extensions "
2122 exit 1
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ RUN ARCH="$(dpkg --print-architecture)" && \
4343# rm -R shellcheck*
4444
4545# Install Go dependencies
46- RUN ARCH="$(dpkg --print-architecture )" && \
46+ RUN ARCH="$(uname -m | sed 's/x86_64/amd64/; s/aarch64/arm64/' )" && \
4747 curl -fsSL "https://dl.google.com/go/go1.14.3.linux-$ARCH.tar.gz" | tar -C /usr/local -xz
4848ENV PATH=/usr/local/go/bin:/root/go/bin:$PATH
4949ENV 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
44main () {
55 cd " $( dirname " $0 " ) /../.."
66
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+
712 # https://github.com/actions/upload-artifact/issues/38
813 tar -xzf release-npm-package/package.tar.gz
914
You can’t perform that action at this time.
0 commit comments