improve deps
This commit is contained in:
parent
82775deacb
commit
7702df6a63
@ -13,6 +13,12 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func Cmd(args ...string) (string, error) {
|
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")
|
cmdHelper, err := filepath.Abs("./cmd-helper")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
@ -1 +0,0 @@
|
|||||||
start %*
|
|
@ -10,10 +10,6 @@
|
|||||||
},
|
},
|
||||||
"localModelDir": "models",
|
"localModelDir": "models",
|
||||||
"programFiles": [
|
"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",
|
"url": "https://cdn.jsdelivr.net/gh/josstorer/RWKV-Runner/backend-python/requirements.txt",
|
||||||
"path": "backend-python/requirements.txt"
|
"path": "backend-python/requirements.txt"
|
||||||
@ -63,7 +59,7 @@
|
|||||||
"path": "backend-python/20B_tokenizer.json"
|
"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"
|
"path": "backend-python/get-pip.py"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user