diff --git a/backend-golang/utils.go b/backend-golang/utils.go index 09419bd..d01dcdb 100644 --- a/backend-golang/utils.go +++ b/backend-golang/utils.go @@ -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 diff --git a/cmd-helper.bat b/cmd-helper.bat deleted file mode 100644 index e4beb94..0000000 --- a/cmd-helper.bat +++ /dev/null @@ -1 +0,0 @@ -start %* \ No newline at end of file diff --git a/manifest.json b/manifest.json index d591864..a521172 100644 --- a/manifest.json +++ b/manifest.json @@ -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" } ],