update: devtools to v1.06.2301040

This commit is contained in:
msojocs 2023-01-21 11:46:19 +08:00
parent 277c1bde14
commit ff3f815e9e
3 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -1 +1 @@
1.06.2209070,8c6be639c117f8c8e6493d335bb17eee
1.06.2301040,17836311a4ec7be7472492965082c2e8

View File

@ -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