Commit 6c3e0e8a authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

epm play qwen-code: added vendor directory for fix tree-sitter.wasm (eterbug #18998)

parent 33515bc8
......@@ -12,10 +12,15 @@ URL="$4"
mkdir -p usr/bin
mkdir -p etc/qwen-code
mkdir -p opt/qwen-code
mv -v $TAR usr/bin/qwen
erc --here unpack $TAR || fatal
chmod 755 usr/bin/qwen
cp -a "package/." "opt/qwen-code/"
chmod 755 "opt/qwen-code/cli.js"
ln -s "/opt/qwen-code/cli.js" "usr/bin/qwen"
PKGNAME=$PRODUCT-$VERSION
......@@ -28,7 +33,7 @@ cat <<EOF > etc/qwen-code/system-defaults.json
}
EOF
erc pack $PKGNAME.tar usr etc || fatal
erc pack $PKGNAME.tar usr opt etc || fatal
cat <<EOF >$PKGNAME.tar.eepm.yaml
name: $PRODUCT
......
......@@ -8,6 +8,10 @@ URL="https://github.com/QwenLM/qwen-code"
. $(dirname $0)/common.sh
PKGURL=$(get_github_url $URL "cli.js")
if [ "$VERSION" = "*" ] ; then
VERSION=$(get_github_tag https://github.com/QwenLM/qwen-code)
fi
PKGURL="https://registry.npmjs.org/@qwen-code/qwen-code/-/qwen-code-${VERSION}.tgz"
install_pack_pkgurl
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment