-
-
Save monotykamary/5a4847844f668f31d4bddbdba4f81e3d to your computer and use it in GitHub Desktop.
Building Screenpipe with Devbox MacOS 15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # make sure we're using the right XCode | |
| sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer | |
| # build the CLI | |
| devbox run build-release | |
| # build the MacOS app | |
| devbox run build-tauri |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "packages": [ | |
| "rustup@latest", | |
| "libiconv@latest", | |
| "pkgconfig@0.29.2", | |
| "ffmpeg@6.1.2", | |
| "jq@1.7.1", | |
| "tesseract@5.3.4", | |
| "cmake@3.29.6", | |
| "wget@1.24.5", | |
| "nodejs@22.8.0", | |
| "bun@1.1.29" | |
| ], | |
| "shell": { | |
| "init_hook": [ | |
| "[[ `uname -s` == 'Darwin' ]] && export PATH=/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:$PATH", | |
| "projectDir=$(dirname $(readlink -f \"$0\"))", | |
| "rustupHomeDir=\"$projectDir\"/.rustup", | |
| "mkdir -p $rustupHomeDir", | |
| "export RUSTUP_HOME=$rustupHomeDir", | |
| "export LIBRARY_PATH=$LIBRARY_PATH:\"/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/usr/lib\"", | |
| "export CPATH=$CPATH:\"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include\"", | |
| "export CXX=\"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++\"", | |
| "export CPLUS_INCLUDE_PATH=\"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1\"", | |
| "export SDKROOT=\"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk\"", | |
| "export MACOSX_DEPLOYMENT_TARGET=15.0", | |
| "rustup default stable", | |
| "cargo fetch" | |
| ], | |
| "scripts": { | |
| "build-release": [ | |
| "cargo clean", | |
| "cargo build --release --features metal" | |
| ], | |
| "build-tauri": [ | |
| "pushd screenpipe-app-tauri", | |
| "bun install", | |
| "bun scripts/pre_build.js", | |
| "bun tauri build", | |
| "popd" | |
| ] | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // .vscode/settings.json | |
| { | |
| "rust-analyzer.cargo.features": [ | |
| "metal", | |
| "pipes" | |
| ], | |
| "rust-analyzer.server.extraEnv": { | |
| "DYLD_LIBRARY_PATH": "${workspaceFolder}/screenpipe-vision/lib:${env:DYLD_LIBRARY_PATH}", | |
| "SCREENPIPE_APP_DEV": "true" | |
| }, | |
| "rust-analyzer.cargo.extraEnv": { | |
| "DYLD_LIBRARY_PATH": "${workspaceFolder}/screenpipe-vision/lib:${env:DYLD_LIBRARY_PATH}", | |
| "SCREENPIPE_APP_DEV": "true" | |
| }, | |
| "terminal.integrated.env.osx": { | |
| "DYLD_LIBRARY_PATH": "${workspaceFolder}/screenpipe-vision/lib:${env:DYLD_LIBRARY_PATH}", | |
| "SCREENPIPE_APP_DEV": "true" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment