Archived
1
0

Bundle in libicu on macOS

Closes #1710

Also reported in #1640
This commit is contained in:
Anmol Sethi
2020-05-21 21:57:35 -04:00
parent ac9b57c07e
commit e55d3e49e1
2 changed files with 17 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/bin/sh
# This script is intended to be bundled into the static releases.
# Runs code-server with the bundled Node binary.
@ -17,5 +17,9 @@ bin_dir() {
}
BIN_DIR=$(bin_dir)
export LD_LIBRARY_PATH="$BIN_DIR/../lib${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}"
if [ "$(uname)" = "Linux"]; then
export LD_LIBRARY_PATH="$BIN_DIR/../lib${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}"
else
export DYLD_LIBRARY_PATH="$BIN_DIR/../lib${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}"
fi
exec "$BIN_DIR/../lib/node" "$BIN_DIR/.." "$@"