mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-07 00:02:14 +08:00
fix: vscode-ripgrep
This commit is contained in:
parent
7fd94d143e
commit
ad2403378d
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@ -279,6 +279,7 @@ jobs:
|
||||
make
|
||||
libssh2
|
||||
krb5
|
||||
wget
|
||||
scripts: "cd tmp/AUR && makepkg && ls -l && cd ../../"
|
||||
|
||||
- name: Fix Permissions
|
||||
|
@ -27,7 +27,7 @@ arch=("x86_64")
|
||||
url="https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html"
|
||||
license=('unknown')
|
||||
depends=('gconf' 'libxkbfile')
|
||||
makedepends=('p7zip' 'python2' 'openssl' 'gcc' 'make' 'libssh2' 'krb5')
|
||||
makedepends=('p7zip' 'python2' 'openssl' 'gcc' 'make' 'libssh2' 'krb5' 'wget')
|
||||
# compiler 用于可视化,以及编译
|
||||
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}"
|
||||
|
@ -59,6 +59,7 @@ parts:
|
||||
- make
|
||||
- openssl
|
||||
- libssh2-1-dev
|
||||
- wget
|
||||
override-pull: |
|
||||
ls -l
|
||||
override-build: |
|
||||
|
@ -46,8 +46,13 @@ rm -fr "vscode-windows-ca-certs" "vscode-windows-registry" "vscode-windows-regis
|
||||
rm -fr "${package_dir}/node_modules/vscode-ripgrep/bin/"* # redownload bin on linux
|
||||
# https://github.com/microsoft/ripgrep-prebuilt
|
||||
cd "${package_dir}/node_modules/vscode-ripgrep" && \
|
||||
mkdir -p tmp && cd tmp && \
|
||||
wget https://gh2.yanqishui.work/https://github.com/microsoft/ripgrep-prebuilt/releases/download/v12.1.1-1/ripgrep-v12.1.1-1-x86_64-unknown-linux-musl.tar.gz -O ripgrep-v12.1.1-1-x86_64-unknown-linux-musl.tar.gz && \
|
||||
mkdir -p tmp && cd tmp
|
||||
|
||||
if [ "$ACTION_MODE" != "true" ]; then
|
||||
notice "非ACTION模式, 设置镜像源"
|
||||
prefix="https://gh2.yanqishui.work/"
|
||||
fi
|
||||
wget ${prefix}https://github.com/microsoft/ripgrep-prebuilt/releases/download/v12.1.1-1/ripgrep-v12.1.1-1-x86_64-unknown-linux-musl.tar.gz -O ripgrep-v12.1.1-1-x86_64-unknown-linux-musl.tar.gz
|
||||
tar xvf ripgrep-v12.1.1-1-x86_64-unknown-linux-musl.tar.gz -C ../bin && \
|
||||
cd .. && rm -rf tmp
|
||||
|
||||
|
@ -42,7 +42,7 @@ if [ ! -f "$root_dir/node/bin/node" ]; then
|
||||
fi
|
||||
# 将node加入环境
|
||||
export PATH="$root_dir/node/bin":$PATH
|
||||
if [ $ACTION_MODE!='true' ]; then
|
||||
if [ "$ACTION_MODE" != "true" ]; then
|
||||
notice "非ACTION模式, 设置镜像源"
|
||||
npm config set registry http://registry.npmmirror.com/ # 注册模块镜像
|
||||
npm config set disturl http://npmmirror.com/dist # node-gyp 编译依赖的 node 源码镜像
|
||||
|
Loading…
x
Reference in New Issue
Block a user