Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

test(linux): the script test expects the name the script now writes (#120)

purple2f0889b16c3b
diff --git a/src/api/__tests__/build-llama-script.test.ts b/src/api/__tests__/build-llama-script.test.ts
index 400840ca..e9affaf7 100644
--- a/src/api/__tests__/build-llama-script.test.ts
+++ b/src/api/__tests__/build-llama-script.test.ts
@@ -62,12 +62,18 @@ describe('build-llama.sh', () => {
expect(code).not.toBe(0)
})
- it('appends .exe only for windows targets', () => {
+ it('appends .exe only for windows targets, and carries the lu- prefix', () => {
+ // GitHub #120: the output name gained the app prefix because Tauri's deb
+ // bundler drops every externalBin into /usr/bin, where Debian's own
+ // llama.cpp-tools package already owns llama-server and dpkg refuses the
+ // install. The name lives in four places (this script, tauri.conf.json,
+ // engine.rs and the NSIS hooks) and they have to agree, so the expected
+ // strings below are the fourth guard against one of them drifting back.
expect(callFn('out_name_for', 'x86_64-pc-windows-msvc').out).toBe(
- 'llama-server-x86_64-pc-windows-msvc.exe',
+ 'lu-llama-server-x86_64-pc-windows-msvc.exe',
)
expect(callFn('out_name_for', 'aarch64-apple-darwin').out).toBe(
- 'llama-server-aarch64-apple-darwin',
+ 'lu-llama-server-aarch64-apple-darwin',
)
})