Skip to content

Commit

Permalink
chore: update llama.cpp with dll #1289 (#1290)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikbry authored Sep 25, 2024
1 parent d790f2a commit 5bb8706
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/update.llama.cpp.binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
unzip ./${{ env.WINDOWS_x86_64_ZIP }}
ls ./
mv llama-server.exe ../${{ env.BINARIES_DIR }}${{ env.WINDOWS_x86_64 }}
mv ggml.dll ../${{ env.BINARIES_DIR }}ggml.dll
mv llama.dll ../${{ env.BINARIES_DIR }}llama.dll
rm -rf ./*
cd ..
Expand All @@ -59,6 +61,8 @@ jobs:
git update-index --chmod=+x ${{ env.BINARIES_DIR }}${{ env.MACOS_x86_64 }}
git update-index --chmod=+x ${{ env.BINARIES_DIR }}${{ env.LINUX_x86_64 }}
git update-index --chmod=+x ${{ env.BINARIES_DIR }}${{ env.WINDOWS_x86_64 }}
git update-index --chmod=+x ${{ env.BINARIES_DIR }}ggml.dll
git update-index --chmod=+x ${{ env.BINARIES_DIR }}llama.dll
- name: add and commit Llama.cpp.server changes
uses: EndBug/add-and-commit@v9
Expand Down
7 changes: 6 additions & 1 deletion bin/update-version.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ await pkgJson.save();
const tauriWindowsToml =
`# Dirty hack to fix Windows version not fully compatible with semver
[package]
version = "${msiVersion}"`;
version = "${msiVersion}"
# fix missing dll files for Windows version
[bundle.resources]
"binaries/llama.cpp/llama.dll" = "llama.dll"
"binaries/llama.cpp/ggml.dll" = "ggml.dll"
`;
await writeFile('./webapp/native/Tauri.windows.toml', tauriWindowsToml);


0 comments on commit 5bb8706

Please sign in to comment.