Made DoH feature optional to be able to create new builds for MIPSes.
This commit is contained in:
1 parent
6eb185f76a
commit
82ccffbbb7
5 files changed
+50
-15
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user