mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 03:32:33 +08:00
26 lines
430 B
Bash
26 lines
430 B
Bash
|
#!/bin/sh
|
||
|
os="clash.meta-linux-"
|
||
|
arch=`uname -m`
|
||
|
case $arch in
|
||
|
"x86_64")
|
||
|
arch="amd64-compatible"
|
||
|
;;
|
||
|
"x86")
|
||
|
arch="386-cgo"
|
||
|
;;
|
||
|
"aarch64")
|
||
|
arch="arm64"
|
||
|
;;
|
||
|
"armv7l")
|
||
|
arch="armv7"
|
||
|
;;
|
||
|
"riscv64")
|
||
|
arch="riscv64-cgo"
|
||
|
;;
|
||
|
*)
|
||
|
echo "Unknown architecture"
|
||
|
exit 1
|
||
|
;;
|
||
|
esac
|
||
|
file_name="$os$arch"
|
||
|
echo $file_name
|