Archived
1
0

Stop bundling libraries in release

- Instead we now use CentOS 7 for the static build to guarantee
  that we only depend on libc v2.17

- For macOS we now pull in a static node binary and bundle that instead.
This commit is contained in:
Anmol Sethi
2020-06-03 11:41:13 -04:00
parent 02a77b528b
commit 11d7932968
12 changed files with 35 additions and 111 deletions

View File

@ -12,10 +12,10 @@ _realpath() {
# See https://github.com/cdr/code-server/issues/1537
if [ "$(uname)" = "Darwin" ]; then
# We read the symlink, which may be relative from $1.
script="$1"
if [ -L "$script" ]; then
while [ -L "$script" ]; do
# We recursively read the symlink, which may be relative from $script.
script="$(readlink "$script")"
cd "$(dirname "$script")"
done
@ -32,9 +32,4 @@ _realpath() {
}
ROOT="$(dirname "$(dirname "$(_realpath "$0")")")"
if [ "$(uname)" = "Linux" ]; then
export LD_LIBRARY_PATH="$ROOT/lib:${LD_LIBRARY_PATH-}"
elif [ "$(uname)" = "Darwin" ]; then
export DYLD_LIBRARY_PATH="$ROOT/lib:${DYLD_LIBRARY_PATH-}"
fi
exec "$ROOT/lib/node" "$ROOT" "$@"