mirror of https://github.com/gorhill/uBlock.git
[mv3] Use specific commit URL to pick uBO repo version
This commit is contained in:
parent
f216dc3c4b
commit
bcc0803bb5
|
@ -1 +1 @@
|
||||||
1.51.1b19
|
https://github.com/gorhill/uBlock/tree/f216dc3c4b86518a8f86aa0184b466549873cac5
|
||||||
|
|
|
@ -44,12 +44,19 @@ mkdir -p $DES/css/fonts
|
||||||
mkdir -p $DES/js
|
mkdir -p $DES/js
|
||||||
mkdir -p $DES/img
|
mkdir -p $DES/img
|
||||||
|
|
||||||
if [ "$UBO_VERSION" != "local" ]; then
|
if [ "$UBO_VERSION" != "HEAD" ]; then
|
||||||
UBO_VERSION=$(cat platform/mv3/ubo-version)
|
cp platform/mv3/ubo-version $DES/
|
||||||
|
UBO_VERSION_URL=$(cat platform/mv3/ubo-version)
|
||||||
|
UBO_VERSION="${UBO_VERSION_URL: -40}"
|
||||||
UBO_REPO="https://github.com/gorhill/uBlock.git"
|
UBO_REPO="https://github.com/gorhill/uBlock.git"
|
||||||
UBO_DIR=$(mktemp -d)
|
UBO_DIR=$(mktemp -d)
|
||||||
echo "*** uBOLite.mv3: Fetching uBO $UBO_VERSION from $UBO_REPO into $UBO_DIR"
|
echo "*** uBOLite.mv3: Fetching uBO $UBO_VERSION from $UBO_REPO into $UBO_DIR"
|
||||||
git clone -q --depth 1 --branch "$UBO_VERSION" "$UBO_REPO" "$UBO_DIR"
|
cd "$UBO_DIR"
|
||||||
|
git init -q
|
||||||
|
git remote add origin "https://github.com/gorhill/uBlock.git"
|
||||||
|
git fetch --depth 1 origin "$UBO_VERSION"
|
||||||
|
git checkout -q FETCH_HEAD
|
||||||
|
cd ..
|
||||||
else
|
else
|
||||||
UBO_DIR=.
|
UBO_DIR=.
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue