mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-06-03 06:59:50 +08:00
feat: rewrite feedback, add encrypt and uuid auth
This commit is contained in:
parent
3843d6c5b6
commit
5d63f7a3b7
tool/ss-feedback
@ -1,52 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
#用法:sender.sh 下载链接 HD70642
|
||||
HERE=$(dirname $0)
|
||||
|
||||
case `arch` in
|
||||
case `uname -m` in
|
||||
x86_64)
|
||||
STORE_URL="store"
|
||||
sender_appendix="amd64"
|
||||
;;
|
||||
aarch64)
|
||||
STORE_URL="aarch64-store"
|
||||
sender_appendix="arm64"
|
||||
;;
|
||||
loongarch64)
|
||||
STORE_URL="loong64-store"
|
||||
sender_appendix="loong64"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -z $1 ] || [ "$2" != "HD70642" ];then
|
||||
echo "Segment fault"
|
||||
# 假的段错误
|
||||
exit -1
|
||||
fi
|
||||
|
||||
|
||||
APP_LOCATION=${1#*/$STORE_URL/}
|
||||
APP_LOCATION=${APP_LOCATION%/*}
|
||||
echo $APP_LOCATION
|
||||
|
||||
APP_METALINK_FILE_NAME=${1##*/}
|
||||
#echo $APP_METALINK_FILE_NAME
|
||||
|
||||
|
||||
PIDS=$(pidof "spark-store")
|
||||
# 检查 metalink以防止未下载时刷分
|
||||
|
||||
if [ ! -f /tmp/spark-store/$APP_METALINK_FILE_NAME ] || [ "$PIDS" = "" ];then
|
||||
sleep 1
|
||||
echo "发送!成功"
|
||||
exit
|
||||
# 其实是发送不成功的意思lolol
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
echo $STORE_URL/$APP_LOCATION
|
||||
curl -X POST -H "Content-Type: application/json" -d '{"path": "'"${STORE_URL}/${APP_LOCATION}"'"}' http://zunyun01.store.deepinos.org.cn:38324/handle_post
|
||||
|
||||
|
||||
|
||||
|
||||
echo "Finished"
|
||||
${HERE}/sender-d-${sender_appendix}
|
||||
|
BIN
tool/ss-feedback/sender-d-amd64
Executable file
BIN
tool/ss-feedback/sender-d-amd64
Executable file
Binary file not shown.
BIN
tool/ss-feedback/sender-d-arm64
Executable file
BIN
tool/ss-feedback/sender-d-arm64
Executable file
Binary file not shown.
BIN
tool/ss-feedback/sender-d-loong64
Executable file
BIN
tool/ss-feedback/sender-d-loong64
Executable file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user