删除无用项

This commit is contained in:
luyoyu 2023-09-13 18:34:59 +08:00
parent dbdd0adc73
commit 848ca4da0e
4 changed files with 0 additions and 64 deletions

View File

@ -1,15 +0,0 @@
{
"server": {
"domain": "example.con",
"host": "0.0.0.0",
"port": 443,
"certPath":"./example.pem",
"keyPath":"./example.pem"
},
"copilot_config":{
"github_api_url": "https://api.github.com/copilot_internal/v2/token",
"token":[
"yours_token"
]},
"verification":""
}

View File

@ -1,46 +0,0 @@
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
START_SCRIPT_PATH="/usr/local/bin/scop"
cat > "$START_SCRIPT_PATH" <<EOF
#!/bin/bash
EXECUTABLE_DIR="$SCRIPT_DIR"
EXECUTABLE="\$EXECUTABLE_DIR/share-copilot"
case "\$1" in
r)
echo "Running share-copilot..."
"\$EXECUTABLE"
;;
rb)
echo "Running share-copilot in the background..."
"\$EXECUTABLE" >/dev/null 2>&1 &
;;
st)
echo "Stopping share-copilot..."
pkill -f "\$EXECUTABLE"
;;
v)
if pgrep -f "\$EXECUTABLE" >/dev/null; then
echo "share-copilot is running"
else
echo "share-copilot is not running"
fi
;;
*)
echo "Usage: \$0 {r|rb|st|v}"
exit 1
;;
esac
exit 0
EOF
chmod +x "$START_SCRIPT_PATH"
echo "-----------------
install success
-----------------
scop r --运行
scop rb --后台运行
scop st --停止
scop v --查看状态
-----------------"

Binary file not shown.

View File

@ -1,3 +0,0 @@
START_SCRIPT_PATH="/usr/local/bin/scop"
rm -f "$START_SCRIPT_PATH"
echo "卸载完成!"