Files
nekoray/libs/get_source.sh
2023-08-08 17:44:40 +09:00

31 lines
549 B
Bash
Executable File

#!/bin/bash
set -e
source libs/env_deploy.sh
ENV_NEKORAY=1
source libs/get_source_env.sh
pushd ..
####
if [ ! -d "sing-box-extra" ]; then
git clone --no-checkout https://github.com/MatsuriDayo/sing-box-extra.git
fi
pushd sing-box-extra
git checkout "$COMMIT_SING_BOX_EXTRA"
ENV_SING_BOX_EXTRA=1
source $SRC_ROOT/libs/get_source_env.sh
NO_ENV=1 ./libs/get_source.sh
popd
####
if [ ! -d "Xray-core" ]; then
git clone --no-checkout https://github.com/MatsuriDayo/Xray-core.git
fi
pushd Xray-core
git checkout "$COMMIT_MATSURI_XRAY"
popd
popd