Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: optimise build

Louis Beaumont0171fe1b3828
diff --git a/screenpipe-app-tauri/scripts/pre_build.js b/screenpipe-app-tauri/scripts/pre_build.js
index d64e36e4b..aebab547a 100644
--- a/screenpipe-app-tauri/scripts/pre_build.js
+++ b/screenpipe-app-tauri/scripts/pre_build.js
@@ -349,6 +349,7 @@ if (platform == 'windows') {
'ffmpeg/doc',
'ffmpeg/presets',
'ffmpeg/licenses',
+ 'ffmpeg/include',
path.join(onnxRuntimeName, 'docs'),
path.join(onnxRuntimeName, 'examples'),
path.join(onnxRuntimeName, 'LICENSE'),
@@ -628,32 +629,6 @@ async function installOllamaSidecar() {
(platform !== 'macos' && await fs.exists(path.join(ollamaDir, ollamaExe)))) {
console.log('ollama sidecar already exists. skipping installation.');
- // Remove older library versions to save storage
- const libDir = path.join(ollamaDir, 'lib', 'ollama');
- const oldLibs = [
- 'cublas64_11.dll',
- 'cublasLt64_11.dll',
- 'cudart64_110.dll',
- 'ggml_cuda_v11.dll',
- 'rocblas',
- 'rocblas.dll',
- 'ggml_rocm.dll'
- ];
-
- for (const lib of oldLibs) {
- try {
- const libPath = path.join(libDir, lib);
- const stat = await fs.stat(libPath);
- if (stat.isDirectory()) {
- await fs.rm(libPath, { recursive: true, force: true });
- } else {
- await fs.unlink(libPath);
- }
- console.log(`removed old library: ${lib}`);
- } catch (error) {
- console.warn(`failed to remove ${lib}:`, error.message);
- }
- }
return;
}
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lock
index 32ea01c5c..bd459d180 100755
--- a/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -3777,7 +3777,7 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
[[package]]
name = "screenpipe-app"
-version = "0.9.19"
+version = "0.9.21"
dependencies = [
"anyhow",
"axum",
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index 2fa7cf5fb..db011e1a6 100644
--- a/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "0.9.21"
+version = "0.9.22"
description = ""
authors = ["you"]
license = ""
diff --git a/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json b/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json
index b6e8f6c17..a5161bd6f 100644
--- a/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json
+++ b/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json
@@ -6,10 +6,18 @@
"ollama"
],
"resources": {
- "ffmpeg\\bin\\*": "./",
+ "ffmpeg\\bin\\ffmpeg.exe": "./",
+ "ffmpeg\\bin\\ffprobe.exe": "./",
+ "ffmpeg\\bin\\*.dll": "./",
"ffmpeg\\lib\\*": "./",
- "onnxruntime*\\lib\\*.dll": "./",
- "lib\\ollama\\*": "./"
+ "onnxruntime*\\lib\\onnxruntime.dll": "./",
+ "onnxruntime*\\lib\\onnxruntime_providers_cuda.dll": "./",
+ "onnxruntime*\\lib\\onnxruntime_providers_shared.dll": "./",
+ "lib\\ollama\\cublas64_12.dll": "./",
+ "lib\\ollama\\cublasLt64_12.dll": "./",
+ "lib\\ollama\\cudart64_12.dll": "./",
+ "lib\\ollama\\runners\\cuda_v12\\**": "./runners/cuda_v12/",
+ "lib\\ollama\\runners\\cpu_avx2\\**": "./runners/cpu_avx2/"
}
}
-}
\ No newline at end of file
+}