2023-12-31 23:02:45 +08:00

41 lines
1004 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
set -e # 命令出错就退出
trap 'catchError $LINENO $BASH_COMMAND' ERR # 捕获错误情况
catchError() {
exit_code=$?
if [ $exit_code -ne 0 ]; then
fail "\033[31mcommand: $2\n at $0:$1\n at $STEP\033[0m"
fi
exit $exit_code
}
success() {
echo -e "\033[42;37m 成功 \033[0m $1"
}
fail() {
echo -e "\033[41;37m 失败 \033[0m $1"
}
echo "start $UID"
python --version
echo "docker node version: $( node --version )"
cd /workspace
# export C_INCLUDE_PATH=/usr/local/openssl/include:$C_INCLUDE_PATH
# export CPLUS_INCLUDE_PATH=/usr/local/openssl/include$CPLUS_INCLUDE_PATH
# export LIBRARY_PATH=/usr/local/openssl/lib64:$LIBRARY_PATH
# export LD_LIBRARY_PATH=/usr/local/openssl/lib64:$LD_LIBRARY_PATH
# export PATH=/opt/7z:/usr/local/openssl/bin:$PATH
# ls -l /usr/local/openssl/lib64
# openssl version -a
#
# exec ./tools/rebuild-node-modules 0.53.1
./tools/setup-wechat-devtools-bash
# chmod -R 777 tmp node nwjs package.nw
# ls -l package.nw