2023-01-15 01:46:30 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
FILENAMES=$(ls)
|
|
|
|
for FILENAME in $FILENAMES
|
|
|
|
do
|
|
|
|
if [[ $FILENAME =~ "darwin-10.16-arm64" ]];then
|
|
|
|
echo "rename darwin-10.16-arm64 $FILENAME"
|
2023-01-15 21:51:33 +08:00
|
|
|
mv $FILENAME clash.meta-darwin-arm64-cgo
|
2023-01-15 01:46:30 +08:00
|
|
|
elif [[ $FILENAME =~ "darwin-10.16-amd64" ]];then
|
|
|
|
echo "rename darwin-10.16-amd64 $FILENAME"
|
2023-01-15 21:51:33 +08:00
|
|
|
mv $FILENAME clash.meta-darwin-amd64-cgo
|
2023-01-15 01:46:30 +08:00
|
|
|
elif [[ $FILENAME =~ "windows-4.0-386" ]];then
|
|
|
|
echo "rename windows 386 $FILENAME"
|
2023-01-15 21:51:33 +08:00
|
|
|
mv $FILENAME clash.meta-windows-386-cgo.exe
|
2023-01-15 01:46:30 +08:00
|
|
|
elif [[ $FILENAME =~ "windows-4.0-amd64" ]];then
|
|
|
|
echo "rename windows amd64 $FILENAME"
|
2023-01-15 21:51:33 +08:00
|
|
|
mv $FILENAME clash.meta-windows-amd64-cgo.exe
|
2023-01-15 01:46:30 +08:00
|
|
|
elif [[ $FILENAME =~ "linux" ]];then
|
|
|
|
echo "rename linux $FILENAME"
|
2023-01-15 21:51:33 +08:00
|
|
|
mv $FILENAME $FILENAME-cgo
|
2023-01-15 01:46:30 +08:00
|
|
|
elif [[ $FILENAME =~ "android" ]];then
|
|
|
|
echo "rename android $FILENAME"
|
2023-01-15 21:51:33 +08:00
|
|
|
mv $FILENAME $FILENAME-cgo
|
2023-01-15 01:46:30 +08:00
|
|
|
else echo "skip $FILENAME"
|
|
|
|
fi
|
|
|
|
done
|