Skip to content

Commit

Permalink
fix macos
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Nov 11, 2024
1 parent 67eabf6 commit afc2e08
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 30 deletions.
40 changes: 20 additions & 20 deletions screenpipe-app-tauri/scripts/pre_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,26 +440,26 @@ if (platform == 'macos') {
}


// Setup FFMPEG
if (!(await fs.exists(config.ffmpegRealname))) {
await $`wget --no-config -nc ${config.macos.ffmpegUrl} -O ${config.macos.ffmpegName}.tar.xz`
await $`tar xf ${config.macos.ffmpegName}.tar.xz`
await $`mv ${config.macos.ffmpegName} ${config.ffmpegRealname}`
await $`rm ${config.macos.ffmpegName}.tar.xz`
} else {
console.log('FFMPEG already exists');
}

// 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');
// // Setup FFMPEG
// if (!(await fs.exists(config.ffmpegRealname))) {
// await $`wget --no-config -nc ${config.macos.ffmpegUrl} -O ${config.macos.ffmpegName}.tar.xz`
// await $`tar xf ${config.macos.ffmpegName}.tar.xz`
// await $`mv ${config.macos.ffmpegName} ${config.ffmpegRealname}`
// await $`rm ${config.macos.ffmpegName}.tar.xz`
// } else {
// console.log('FFMPEG already exists');
// }

// // 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');

}

Expand Down
2 changes: 1 addition & 1 deletion screenpipe-app-tauri/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
version = "0.10.6"
version = "0.10.7"
description = ""
authors = ["you"]
license = ""
Expand Down
9 changes: 0 additions & 9 deletions screenpipe-app-tauri/src-tauri/tauri.macos.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
"bundle": {
"macOS": {
"frameworks": [
"ffmpeg/lib/libavcodec.61.dylib",
"ffmpeg/lib/libavdevice.61.dylib",
"ffmpeg/lib/libavfilter.10.dylib",
"ffmpeg/lib/libavformat.61.dylib",
"ffmpeg/lib/libavutil.59.dylib",
"ffmpeg/lib/libffmpeg.7.dylib",
"ffmpeg/lib/libswresample.5.dylib",
"ffmpeg/lib/libswscale.8.dylib",
"../../screenpipe-vision/lib/libscreenpipe.dylib",
"../../screenpipe-vision/lib/libscreenpipe_x86_64.dylib",
"../../screenpipe-vision/lib/libscreenpipe_arm64.dylib"
Expand All @@ -24,7 +16,6 @@
},
"externalBin": [
"screenpipe",
"ffmpeg",
"bun",
"ollama"
]
Expand Down

0 comments on commit afc2e08

Please sign in to comment.