Made DoH feature optional to be able to create new builds for MIPSes.

This commit is contained in:
Revertron
2021-09-15 23:56:51 +02:00
parent 6eb185f76a
commit 82ccffbbb7
5 changed files with 50 additions and 15 deletions
+6 -1
View File
@@ -23,6 +23,11 @@ PKGREPLACES=alfis
mkdir -p bin
FEATURES = "doh"
if [ $PKGARCH = "mipsel" ]; then FEATURES=''
elif [ $PKGARCH = "mips" ]; then FEATURES=''
fi
TARGET=""
# Building nogui versions only
if [ $PKGARCH = "amd64" ]; then TARGET='x86_64-unknown-linux-musl'
@@ -36,7 +41,7 @@ else
exit 1
fi
cross build --release --no-default-features --target $TARGET
cross build --release --no-default-features --features=$FEATURES --target $TARGET
upx target/$TARGET/release/alfis
cp target/$TARGET/release/alfis ./alfis
cp target/$TARGET/release/alfis ./bin/alfis-linux-$PKGARCH-v$PKGVERSION-nogui