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 tauri mac

Louis Beaumontb77211104889
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index 43e7dc7ae..d20310853 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -22,13 +22,13 @@ jobs:
matrix:
include:
- platform: "macos-latest" # for Arm based macs (M1 and above).
- args: "--target aarch64-apple-darwin"
+ args: "--target aarch64-apple-darwin --features metal"
- platform: "macos-latest" # for Intel based macs.
- args: "--target x86_64-apple-darwin"
+ args: "--target x86_64-apple-darwin --features metal"
- platform: "ubuntu-24.04" # Ubuntu x86_64
- args: ""
+ args: "" # TODO CUDA
- platform: "windows-latest" # Windows x86_64
- args: '--target x86_64-pc-windows-msvc --features "openblas"'
+ args: '--target x86_64-pc-windows-msvc --features "openblas"' # TODO CUDA?
pre-build-args: "--openblas"
runs-on: ${{ matrix.platform }}
diff --git a/examples/apps/screenpipe-app-tauri/scripts/pre_build.js b/examples/apps/screenpipe-app-tauri/scripts/pre_build.js
index 4864e52b6..209c5b6a1 100644
--- a/examples/apps/screenpipe-app-tauri/scripts/pre_build.js
+++ b/examples/apps/screenpipe-app-tauri/scripts/pre_build.js
@@ -128,8 +128,8 @@ if (platform == 'windows') {
if (platform == 'macos') {
// Install lame using Homebrew
await $`brew install lame`
- // Copy lame to ffmpeg
- await $`cp -r /opt/homebrew/opt/lame/lib/* ${config.ffmpegRealname}/lib/`
+ // Copy lame to ffmpeg ! NEED SUDO
+ await $`sudo cp -r /opt/homebrew/opt/lame/lib/* ${config.ffmpegRealname}/lib/`
// Setup FFMPEG
if (!(await fs.exists(config.ffmpegRealname))) {
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 ed71df579..e8c77ffd9 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
@@ -23,6 +23,9 @@
"width": 660
}
}
+ },
+ "resources": {
+ "ffmpeg/bin/*": "./"
}
}
}
\ No newline at end of file