1 Star 0 Fork 0

lsgsx/tilemill

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
rebuild_cxx.sh 814 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env bash
echo 'rebuilding node cxx modules'
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd ${CURRENT_DIR}
echo "starting work in ${CURRENT_DIR}"
TILEMILL_ROOT=`pwd`
PATH=${TILEMILL_ROOT}/node_modules/.bin:${PATH}
PATH="`npm explore npm -g -- pwd`/bin/node-gyp-bin":${PATH}
RUN_SETUP=false
while getopts "s" OPT; do
case $OPT in
s)
RUN_SETUP=true
;;
esac
done
BUILD_ROOT=${TILEMILL_ROOT}/node_root_dir
if [ "${RUN_SETUP}" = true ]; then
NVER=`node -e "console.log(process.versions.node)"`
echo "Running node-gyp setup for ${NVER}"
node-gyp install ${NVER}
BUILD_ROOT=${TILEMILL_ROOT}/node_root_dir
cp -r ~/.node-gyp/${NVER}/ ${BUILD_ROOT}
rm -rf ~/.node-gyp/
fi
npm rebuild --nodedir=${BUILD_ROOT} --build-from-source
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/ssjylsg/tilemill.git
git@gitee.com:ssjylsg/tilemill.git
ssjylsg
tilemill
tilemill
master

搜索帮助