From ff3f815e9e734446ac9bd74c801af65f5a3a637c Mon Sep 17 00:00:00 2001 From: msojocs Date: Sat, 21 Jan 2023 11:46:19 +0800 Subject: [PATCH] update: devtools to v1.06.2301040 --- changelog.md | 4 ++-- conf/devtools_v | 2 +- tools/rebuild-node-modules.sh | 6 +++++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index d00c509..2b050c8 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,6 @@ -# 1.06.2209070-2 / 2023-01- +# 1.06.2301040-1 / 2023-01-21 -- fix: compiler not found +- update: devtools to v1.06.2301040 # 1.06.2209070-1 / 2022-09-09 diff --git a/conf/devtools_v b/conf/devtools_v index 7a41243..f889327 100644 --- a/conf/devtools_v +++ b/conf/devtools_v @@ -1 +1 @@ -1.06.2209070,8c6be639c117f8c8e6493d335bb17eee \ No newline at end of file +1.06.2301040,17836311a4ec7be7472492965082c2e8 \ No newline at end of file diff --git a/tools/rebuild-node-modules.sh b/tools/rebuild-node-modules.sh index 4031837..04ff3c6 100755 --- a/tools/rebuild-node-modules.sh +++ b/tools/rebuild-node-modules.sh @@ -8,6 +8,10 @@ notice() { echo -e "\033[36m $1 \033[0m " } +fail() { + echo -e "\033[41;37m 失败 \033[0m $1" +} + root_dir=$(cd `dirname $0`/.. && pwd -P) package_dir="$root_dir/package.nw" export PATH="$root_dir/node/bin:$PATH" @@ -22,7 +26,7 @@ fi PY_VERSION=`python -V 2>&1|awk '{print $2}'|awk -F '.' '{print $1}'` if [ $PY_VERSION != 2 ]; then - hash python2 2>/dev/null || { echo >&2 "I require python2 but it's not installed. Aborting."; exit 1; } + hash python2 2>/dev/null || { fail "I require python2 but it's not installed. Aborting."; exit 1; } ln -s "$( which python2 )" "$root_dir/node/bin/python" fi