Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-13 22:03:09 +00:00

install_bin: remove macos support

This commit is contained in:
bol-van
2025-12-02 11:48:56 +03:00
parent 711eefed3e
commit ec6021898b

View File

@@ -30,7 +30,7 @@ select_test_method()
TEST=bash TEST=bash
elif exists zsh && [ "$UNAME" != CYGWIN ] ; then elif exists zsh && [ "$UNAME" != CYGWIN ] ; then
TEST=zsh TEST=zsh
elif [ "$UNAME" != Darwin -a "$UNAME" != CYGWIN ]; then elif [ "$UNAME" != CYGWIN ]; then
if exists hexdump and exists dd; then if exists hexdump and exists dd; then
# macos does not use ELF # macos does not use ELF
TEST=elf TEST=elf
@@ -64,12 +64,6 @@ select_test_method()
} }
disable_antivirus()
{
# $1 - dir
[ "$UNAME" = Darwin ] && find "$1" -maxdepth 1 -type f -perm +111 -exec xattr -d com.apple.quarantine {} \; 2>/dev/null
}
check_dir() check_dir()
{ {
local dir="$BINDIR/$1" local dir="$BINDIR/$1"
@@ -77,7 +71,6 @@ check_dir()
local out local out
if [ -f "$exe" ]; then if [ -f "$exe" ]; then
if [ -x "$exe" ]; then if [ -x "$exe" ]; then
disable_antivirus "$dir"
case $TEST in case $TEST in
bash) bash)
out=$(echo 0.0.0.0 | bash -c "\"$exe"\" 2>/dev/null) out=$(echo 0.0.0.0 | bash -c "\"$exe"\" 2>/dev/null)
@@ -143,8 +136,7 @@ if [ ! -d "$BINDIR" ] || ! dir_is_not_empty "$BINDIR" ]; then
echo "to compile on other systems : make" echo "to compile on other systems : make"
;; ;;
Darwin) Darwin)
echo "you need to download release from github or build binaries from source" echo "macos is not supported"
echo "to compile : make mac"
;; ;;
FreeBSD) FreeBSD)
echo "you need to download release from github or build binaries from source" echo "you need to download release from github or build binaries from source"
@@ -168,9 +160,6 @@ case $UNAME in
ARCHLIST="my linux-x86_64 linux-x86 linux-arm64 linux-arm linux-mips64 linux-mipsel linux-mips linux-lexra linux-ppc" ARCHLIST="my linux-x86_64 linux-x86 linux-arm64 linux-arm linux-mips64 linux-mipsel linux-mips linux-lexra linux-ppc"
PKTWS=nfqws2 PKTWS=nfqws2
;; ;;
Darwin)
ARCHLIST="my mac64"
;;
FreeBSD) FreeBSD)
ARCHLIST="my freebsd-x86_64" ARCHLIST="my freebsd-x86_64"
PKTWS=dvtws2 PKTWS=dvtws2