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 ci

Louis Beaumonte833d1fb2580
diff --git a/examples/apps/screenpipe-app-tauri/scripts/pre_build.js b/examples/apps/screenpipe-app-tauri/scripts/pre_build.js
index f2b01c857..2a8874d93 100644
--- a/examples/apps/screenpipe-app-tauri/scripts/pre_build.js
+++ b/examples/apps/screenpipe-app-tauri/scripts/pre_build.js
@@ -77,6 +77,7 @@ if (platform == 'linux') {
if (hasFeature('opencl')) {
config.linux.aptPackages.push('libclblast-dev')
}
+ config.linux.aptPackages.push('libmp3lame0') // Add MP3 support
for (const name of config.linux.aptPackages) {
await $`sudo apt-get install -y ${name}`
}
@@ -91,6 +92,11 @@ if (platform == 'windows') {
await $`mv ${config.windows.ffmpegName} ${config.ffmpegRealname}`
await $`rm -rf ${config.windows.ffmpegName}.7z`
await $`mv ${config.ffmpegRealname}/lib/x64/* ${config.ffmpegRealname}/lib/`
+
+ // Ensure libmp3lame is present
+ if (!(await fs.exists(`${config.ffmpegRealname}/bin/x64/libmp3lame.dll`))) {
+ console.error("libmp3lame.dll is missing from the FFmpeg package. Please use a FFmpeg build that includes MP3 support.");
+ }
}
// Setup OpenBlas
@@ -125,6 +131,11 @@ if (platform == 'macos') {
await $`tar xf ${config.macos.ffmpegName}.tar.xz`
await $`mv ${config.macos.ffmpegName} ${config.ffmpegRealname}`
await $`rm ${config.macos.ffmpegName}.tar.xz`
+
+ // Ensure libmp3lame is present
+ if (!(await fs.exists(`${config.ffmpegRealname}/lib/libmp3lame.0.dylib`))) {
+ console.error("libmp3lame.0.dylib is missing from the FFmpeg package. Please use a FFmpeg build that includes MP3 support.");
+ }
}
}
diff --git a/examples/apps/screenpipe-app-tauri/src-tauri/tauri.linux.conf.json b/examples/apps/screenpipe-app-tauri/src-tauri/tauri.linux.conf.json
index e4062ec54..28994e827 100644
--- a/examples/apps/screenpipe-app-tauri/src-tauri/tauri.linux.conf.json
+++ b/examples/apps/screenpipe-app-tauri/src-tauri/tauri.linux.conf.json
@@ -4,9 +4,13 @@
"deb": {
"depends": [
"ffmpeg",
- "libopenblas-dev"
+ "libopenblas-dev",
+ "libmp3lame0"
]
}
+ },
+ "resources": {
+ "ffmpeg/lib/*": "./"
}
}
}
\ No newline at end of file
diff --git a/examples/apps/screenpipe-app-tauri/src-tauri/tauri.macos.conf.json b/examples/apps/screenpipe-app-tauri/src-tauri/tauri.macos.conf.json
index 7e9a777be..50ba35f24 100644
--- a/examples/apps/screenpipe-app-tauri/src-tauri/tauri.macos.conf.json
+++ b/examples/apps/screenpipe-app-tauri/src-tauri/tauri.macos.conf.json
@@ -9,7 +9,8 @@
"ffmpeg/lib/libavutil.59.dylib",
"ffmpeg/lib/libffmpeg.7.dylib",
"ffmpeg/lib/libswresample.5.dylib",
- "ffmpeg/lib/libswscale.8.dylib"
+ "ffmpeg/lib/libswscale.8.dylib",
+ "ffmpeg/lib/libmp3lame.0.dylib"
],
"signingIdentity": "-",
"hardenedRuntime": false,
@@ -23,7 +24,8 @@
}
},
"resources": {
- "ffmpeg/bin/*": "./"
+ "ffmpeg/bin/*": "./",
+ "ffmpeg/lib/*": "./"
}
}
}
\ No newline at end of file
diff --git a/examples/apps/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json b/examples/apps/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json
index 50ad04615..c0bee580d 100644
--- a/examples/apps/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json
+++ b/examples/apps/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json
@@ -1,7 +1,9 @@
{
"bundle": {
"resources": {
- "ffmpeg\\bin\\x64\\*": "./"
+ "ffmpeg\\bin\\x64\\*": "./",
+ "ffmpeg\\lib\\*": "./",
+ "ffmpeg\\bin\\x64\\libmp3lame.dll": "./"
}
}
}
\ No newline at end of file