From df2d94f3f2f2f3960ffeefcd2a6d2665e8f88eed Mon Sep 17 00:00:00 2001 From: msojocs Date: Sat, 17 May 2025 16:10:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8=E6=97=A7=E7=9A=84nw-g?= =?UTF-8?q?yp=EF=BC=8C=E8=A7=A3=E5=86=B3=E6=A8=A1=E5=9D=97=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E5=A4=B1=E8=B4=A5=20#144?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- res/aur/PKGBUILD | 2 +- tools/rebuild-node-modules.sh | 2 +- tools/setup-wechat-devtools.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/res/aur/PKGBUILD b/res/aur/PKGBUILD index 4dcaf7b..74abb11 100644 --- a/res/aur/PKGBUILD +++ b/res/aur/PKGBUILD @@ -89,7 +89,7 @@ build() { _log "prepare nw-gyp" node --version npm uninstall node-gyp -g - npm install nw-gyp node-gyp -g + npm install nw-gyp@3.6.6 node-gyp -g # node bin _log "copy node exectuable" diff --git a/tools/rebuild-node-modules.sh b/tools/rebuild-node-modules.sh index 6a025f2..04be374 100755 --- a/tools/rebuild-node-modules.sh +++ b/tools/rebuild-node-modules.sh @@ -2,7 +2,7 @@ # 参数: # 1 ---- NW版本 -set -e +set -ex notice() { echo -e "\033[36m $1 \033[0m " diff --git a/tools/setup-wechat-devtools.sh b/tools/setup-wechat-devtools.sh index 5bc11a9..87bb667 100755 --- a/tools/setup-wechat-devtools.sh +++ b/tools/setup-wechat-devtools.sh @@ -79,7 +79,7 @@ fi if [ $CURRENT_STEP == $INSTALL_NPM_CONFIG_SUCCESS ];then notice "=====安装node-gyp nw-gyp====" npm uninstall node-gyp -g - npm install node-gyp nw-gyp -g + npm install node-gyp nw-gyp@3.6.6 -g echo $PATH node-gyp install node-gyp list