mirror of
https://git-qiuchenly.yltfspace.com/QiuChenly/corepatch
synced 2025-11-25 11:29:34 +08:00
增加QiuChenly一键注入应用商店前端页面能力。
This commit is contained in:
32
res/uninstall_daemon.sh
Executable file
32
res/uninstall_daemon.sh
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Hayaku HTTP守护进程卸载脚本
|
||||
|
||||
set -e
|
||||
|
||||
echo "卸载Hayaku HTTP守护进程..."
|
||||
|
||||
# 检查是否以root权限运行
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
echo "请使用sudo运行此脚本"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
PLIST_NAME="com.qiuchenly.hayaku.daemon.plist"
|
||||
|
||||
# 停止并卸载服务
|
||||
echo "停止服务..."
|
||||
launchctl stop "com.qiuchenly.hayaku.daemon" 2>/dev/null || true
|
||||
launchctl unload "/Library/LaunchDaemons/$PLIST_NAME" 2>/dev/null || true
|
||||
|
||||
# 删除文件
|
||||
echo "删除文件..."
|
||||
rm -f "/usr/local/bin/InjectLib"
|
||||
rm -f "/usr/local/bin/tool"
|
||||
rm -f "/usr/local/bin/config.json"
|
||||
rm -f "/usr/local/bin/frontend"
|
||||
rm -f "/Library/LaunchDaemons/$PLIST_NAME"
|
||||
rm -f "/var/log/hayaku_daemon.log"
|
||||
rm -f "/var/log/hayaku_daemon_error.log"
|
||||
|
||||
echo "卸载完成!"
|
||||
Reference in New Issue
Block a user