mirror of
https://gitee.com/chuangxxt/share-copilot
synced 2025-04-18 23:33:33 +00:00
删除无用项
This commit is contained in:
parent
dbdd0adc73
commit
848ca4da0e
15
config.json
15
config.json
@ -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":""
|
|
||||||
}
|
|
46
install.sh
46
install.sh
@ -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 --查看状态
|
|
||||||
-----------------"
|
|
BIN
share-copilot
BIN
share-copilot
Binary file not shown.
@ -1,3 +0,0 @@
|
|||||||
START_SCRIPT_PATH="/usr/local/bin/scop"
|
|
||||||
rm -f "$START_SCRIPT_PATH"
|
|
||||||
echo "卸载完成!"
|
|
Loading…
Reference in New Issue
Block a user