From 848d6c9122d6af15f8a6a53150537239e6e2b6c6 Mon Sep 17 00:00:00 2001 From: msojocs Date: Tue, 15 Mar 2022 22:55:35 +0800 Subject: [PATCH] fix: /usr/bin/env: node: No such file or directory --- res/aur/PKGBUILD | 14 +++++++------- res/aur/wechat-devtools.desktop | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/res/aur/PKGBUILD b/res/aur/PKGBUILD index 0c18a37..801bae7 100644 --- a/res/aur/PKGBUILD +++ b/res/aur/PKGBUILD @@ -3,15 +3,15 @@ # Contributor: bruceutut # 方法参考 -# https://github.com/jiyeme/wechat-devtools +# https://github.com/msojocs/wechat-web-devtools-linux # https://github.com/dragonation/wechat-devtools # https://github.com/cytle/wechat_web_devtools -_wechat_devtools_ver="1.05.2203030" +_wechat_devtools_ver="1.05.2203070" # https://servicewechat.com/wxa-dev-logic/download_redirect?type=x64&from=mpwiki&download_version=1052203030&version_type=1 _wechat_devtools_url="https://servicewechat.com/wxa-dev-logic/download_redirect?type=x64&from=mpwiki&download_version=${_wechat_devtools_ver//\./}&version_type=1" # _wechat_devtools_url="https://dldir1.qq.com/WechatWebDev/release/p-ae42ee2cde4d42ee80ac60b35f183a99/wechat_devtools_1.05.2201240_x64.exe" -_wechat_devtools_md5="123" +_wechat_devtools_md5="2785d569b88d72a8e238d438d92faf44" _wechat_devtools_exe="wechat_devtools_${_wechat_devtools_ver}_x64.exe" _nwjs_ver="0.53.1" @@ -20,7 +20,7 @@ _node_version="16.1.0" pkgname=wechat-devtools pkgver="${_wechat_devtools_ver}" # 主版本号 -pkgrel=2 # 次版本号release +pkgrel=3 # 修订版本号release epoch=2 # 大版本迭代强制更新(维护者变更,尽量不用) pkgdesc="WeChat Devtools For Linux. " arch=("x86_64") @@ -32,7 +32,7 @@ makedepends=('p7zip' 'python2' 'openssl' 'gcc' 'make' 'libssh2' 'krb5') source=("nwjs-v${_nwjs_ver}.tar.gz::https://npm.taobao.org/mirrors/nwjs/v${_nwjs_ver}/nwjs-sdk-v${_nwjs_ver}-linux-x64.tar.gz" "${_wechat_devtools_exe}::${_wechat_devtools_url}" "node-v${_node_version}.tar.gz::https://npm.taobao.org/mirrors/node/v${_node_version}/node-v${_node_version}-linux-x64.tar.gz" - "compiler.tar.gz::https://github.rc1844.workers.dev/msojocs/wechat-devtools-linux/releases/download/v1.05.2203070-2/compiler.tar.gz" + "compiler.tar.gz::https://github.rc1844.workers.dev/msojocs/wechat-web-devtools-linux/releases/download/v1.05.2203070-3/compiler.tar.gz" "wechat-devtools.desktop" "logo.svg" "fix-cli.sh" @@ -46,8 +46,8 @@ source=("nwjs-v${_nwjs_ver}.tar.gz::https://npm.taobao.org/mirrors/nwjs/v${_nwjs md5sums=(b6f49803c51d0abacca2d1e566c7fe19 # nwjs "${_wechat_devtools_md5}" 2280bfbbf29981fd5adce334f40146ff # nodejs - 72521b0e6aa748ed1c094617aa9c87ee # compiler - 1abd6b4ebbbb918f601a6c5dbad55a05 # desktop + 9650f811d5c4d2ca124dcfa6d0b32c4c # compiler + 01ea705bfe43f5f9683f0dbefb3f1574 # desktop 0f4353664123320280ea4d6bb295dce2 # svg "SKIP" "SKIP" diff --git a/res/aur/wechat-devtools.desktop b/res/aur/wechat-devtools.desktop index 03ddbb0..556b661 100755 --- a/res/aur/wechat-devtools.desktop +++ b/res/aur/wechat-devtools.desktop @@ -3,7 +3,7 @@ Name=WeChat Devtools Name[zh_CN]=微信web开发者工具 Comment=The development tools for wechat web develop Categories=Development;WebDevelopment;IDE; -Exec=env APPDATA=~/.config/wechat_devtools USERPROFILE=~ bash -c ' clean_cache(){ echo "清理缓存"; rm -rf "$APPDATA/WeappCache"; rm -rf "$APPDATA/WeappVendor";}; if [[ -f "$APPDATA/.build_time" ]];then diff "$APPDATA/.build_time" "/opt/wechat-devtools/package.nw/.build_time" >/dev/null; if [ ! "$?" == "0" ];then \cp -f "/opt/wechat-devtools/package.nw/.build_time" "$APPDATA/.build_time";clean_cache; fi; else \cp -f "/opt/wechat-devtools/package.nw/.build_time" "$APPDATA/.build_time"; clean_cache; fi; /opt/wechat-devtools/nw --load-extension=~/.config/wechat_devtools/WeappPlugin --custom-devtools-frontend=file:///opt/wechat-devtools/package.nw/js/ideplugin/inspector %U' +Exec=env APPDATA=~/.config/wechat_devtools USERPROFILE=~ bash -c ' export PATH="/opt/wechat-devtools:$PATH"; clean_cache(){ echo "清理缓存"; rm -rf "$APPDATA/WeappCache"; rm -rf "$APPDATA/WeappVendor";}; if [[ -f "$APPDATA/.build_time" ]];then diff "$APPDATA/.build_time" "/opt/wechat-devtools/package.nw/.build_time" >/dev/null; if [ ! "$?" == "0" ];then \cp -f "/opt/wechat-devtools/package.nw/.build_time" "$APPDATA/.build_time";clean_cache; fi; else \cp -f "/opt/wechat-devtools/package.nw/.build_time" "$APPDATA/.build_time"; clean_cache; fi; /opt/wechat-devtools/nw --load-extension=~/.config/wechat_devtools/WeappPlugin --custom-devtools-frontend=file:///opt/wechat-devtools/package.nw/js/ideplugin/inspector %U' Path=/opt/wechat-devtools Icon=wechat-devtools Type=Application