代码拉取完成,页面将自动刷新
#! /usr/bin/env bash
set -e
brew install opam pkg-config coreutils
opam init --no-setup --bare;
opam switch create 4.10.0;
opam switch 4.10.0;
git submodule update --init --recursive
eval "$(opam env)"
make setup
make config
# Remove dynamically linked libraries to force MacOS to use static ones
rm /usr/local/lib/libtree-sitter.0.0.dylib
rm /usr/local/lib/libtree-sitter.dylib
make build-spacegrep
make build-core
mkdir -p artifacts
cp ./semgrep-core/_build/install/default/bin/semgrep-core artifacts
cp ./spacegrep/_build/install/default/bin/spacegrep artifacts
zip -r artifacts.zip artifacts
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。