github.com/metacubex/mihomo@v1.18.5/docker/file-name.sh (about) 1 #!/bin/sh 2 os="mihomo-linux-" 3 case $TARGETPLATFORM in 4 "linux/amd64") 5 arch="amd64-compatible" 6 ;; 7 "linux/386") 8 arch="386" 9 ;; 10 "linux/arm64") 11 arch="arm64" 12 ;; 13 "linux/arm/v7") 14 arch="armv7" 15 ;; 16 "riscv64") 17 arch="riscv64" 18 ;; 19 *) 20 echo "Unknown architecture" 21 exit 1 22 ;; 23 esac 24 file_name="$os$arch-$(cat bin/version.txt)" 25 echo $file_name