mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-08-25 03:22:31 +00:00
25 lines
No EOL
459 B
Bash
25 lines
No EOL
459 B
Bash
#!/bin/sh
|
|
os="clash.meta-linux-"
|
|
case $TARGETPLATFORM in
|
|
"linux/amd64")
|
|
arch="amd64-compatible"
|
|
;;
|
|
"linux/386")
|
|
arch="386"
|
|
;;
|
|
"linux/arm64")
|
|
arch="arm64"
|
|
;;
|
|
"linux/arm/v7")
|
|
arch="armv7"
|
|
;;
|
|
"riscv64")
|
|
arch="riscv64"
|
|
;;
|
|
*)
|
|
echo "Unknown architecture"
|
|
exit 1
|
|
;;
|
|
esac
|
|
file_name="$os$arch-$(cat bin/version.txt)"
|
|
echo $file_name |