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: properly apple sign ffmpeg bin

Louis Beaumont9026883956d0
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index 578bf060d..f1480284f 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -176,8 +176,8 @@ jobs:
# https://tauri.app/v1/guides/distribution/sign-macos
CI: true
with:
- tagName: v__VERSION__ # the action automatically replaces __VERSION__ with the app version.
- releaseName: "v__VERSION__"
+ tagName: app-v__VERSION__ # the action automatically replaces __VERSION__ with the app version.
+ releaseName: "App v__VERSION__"
releaseBody: "What's new? 🎉📣"
releaseDraft: true
prerelease: true
diff --git a/examples/apps/screenpipe-app-tauri/scripts/pre_build.js b/examples/apps/screenpipe-app-tauri/scripts/pre_build.js
index a66a34a43..69b488b12 100644
--- a/examples/apps/screenpipe-app-tauri/scripts/pre_build.js
+++ b/examples/apps/screenpipe-app-tauri/scripts/pre_build.js
@@ -322,6 +322,17 @@ 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`
+
+ // Move and rename ffmpeg and ffprobe binaries
+ const ffmpegSrc = path.join(cwd, config.ffmpegRealname, 'bin', 'ffmpeg');
+
+ // For x86_64
+ await fs.copyFile(ffmpegSrc, path.join(cwd, 'ffmpeg-x86_64-apple-darwin'));
+
+ // For arm64
+ await fs.copyFile(ffmpegSrc, path.join(cwd, 'ffmpeg-aarch64-apple-darwin'));
+
+ console.log('Moved and renamed ffmpeg binary for externalBin');
}
}
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 df14e8c6d..b89e1ba65 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
@@ -19,11 +19,9 @@
"exceptionDomain": "screenpi.pe",
"provisioningProfile": null
},
- "resources": {
- "ffmpeg/bin/*": "./"
- },
"externalBin": [
- "screenpipe"
+ "screenpipe",
+ "ffmpeg"
]
}
}
\ No newline at end of file