improve deps

This commit is contained in:
josc146 2023-05-21 10:09:27 +08:00
parent 82775deacb
commit 7702df6a63
3 changed files with 7 additions and 6 deletions

View File

@ -13,6 +13,12 @@ import (
)
func Cmd(args ...string) (string, error) {
_, err := os.Stat("cmd-helper.bat")
if err != nil {
if err := os.WriteFile("./cmd-helper.bat", []byte("start %*"), 0644); err != nil {
return "", err
}
}
cmdHelper, err := filepath.Abs("./cmd-helper")
if err != nil {
return "", err

View File

@ -1 +0,0 @@
start %*

View File

@ -10,10 +10,6 @@
},
"localModelDir": "models",
"programFiles": [
{
"url": "https://raw.githubusercontent.com/josStorer/RWKV-Runner/master/cmd-helper.bat",
"path": "cmd-helper.bat"
},
{
"url": "https://cdn.jsdelivr.net/gh/josstorer/RWKV-Runner/backend-python/requirements.txt",
"path": "backend-python/requirements.txt"
@ -63,7 +59,7 @@
"path": "backend-python/20B_tokenizer.json"
},
{
"url": "https://raw.githubusercontent.com/pypa/get-pip/main/public/get-pip.py",
"url": "https://bootstrap.pypa.io/get-pip.py",
"path": "backend-python/get-pip.py"
}
],