Project OpenTARS commited on
Windows: engine packaged whole (llama-common.dll), installer metadata; revision 2026111501
Browse files
app/empacotamento/montar_pacote.py
CHANGED
|
@@ -115,9 +115,11 @@ def embutir_motor(app_destino, s, m, cache):
|
|
| 115 |
t.extractall(raiz, filter="data")
|
| 116 |
for executavel in raiz.rglob("llama-server*"):
|
| 117 |
executavel.chmod(0o755)
|
| 118 |
-
# s贸 o servidor e as bibliotecas dele: as outras ferramentas do llama.cpp (llama-cli, quantize...) ficam de fora
|
|
|
|
|
|
|
| 119 |
for f in raiz.rglob("*"):
|
| 120 |
-
if f.is_file() and f.name.startswith("llama-") and not f.name.startswith("llama-server"):
|
| 121 |
f.unlink()
|
| 122 |
print("motor embutido:", variante, flush=True)
|
| 123 |
|
|
|
|
| 115 |
t.extractall(raiz, filter="data")
|
| 116 |
for executavel in raiz.rglob("llama-server*"):
|
| 117 |
executavel.chmod(0o755)
|
| 118 |
+
# s贸 o servidor e as bibliotecas dele: as outras ferramentas do llama.cpp (llama-cli, quantize...) ficam de fora.
|
| 119 |
+
# S贸 os execut谩veis saem: as DLLs ficam TODAS (15/11: apagar "llama-*" levou o llama-common.dll junto e o
|
| 120 |
+
# llama-server.exe do Windows n茫o abria: "llama-common.dll n茫o foi encontrado").
|
| 121 |
for f in raiz.rglob("*"):
|
| 122 |
+
if f.is_file() and f.name.startswith("llama-") and not f.name.startswith("llama-server") and f.suffix in ("", ".exe"):
|
| 123 |
f.unlink()
|
| 124 |
print("motor embutido:", variante, flush=True)
|
| 125 |
|