mediar-ai / screenpipe

24/7 local AI screen & mic recording. Works with Ollama. Llama3.2 control your computer. Alternative to Rewind.ai & Zapier. Open. Secure. You own your data. Rust.
https://screenpi.pe
MIT License
7.4k stars 388 forks source link

[bug] Error on MacOS when running `bun tauri build` #460

Open ianmiell opened 3 hours ago

ianmiell commented 3 hours ago

describe the bug a clear and concise description of what the bug is.

Error on MacOS when running bun tauri build to build desktop app

to reproduce

Follow instructions here: https://docs.screenpi.pe/docs/getting-started#option-1-build-from-source-for-advanced-users

expected behavior Desktop app to be built

screenshots

bun scripts/pre_build.js
cwd /Users/imiell/git/screenpipe/screenpipe-app-tauri/src-tauri
Setting up screenpipe bin for arm64...
Copied most recent arm64 screenpipe binary from ../../target/release/screenpipe
[cctools-port]: generating fake signature for './screenpipe-aarch64-apple-darwin'
[cctools-port]: generating fake signature for './screenpipe-aarch64-apple-darwin'
hard coded the FUCKING dylib
screenpipe for arm64 set up successfully.
Setting up screenpipe bin for x86_64...
No suitable x86_64 screenpipe binary found
screenpipe for x86_64 set up successfully.
--2024-10-10 16:52:19--  https://master.dl.sourceforge.net/project/avbuild/macOS/ffmpeg-7.0-macOS-default.tar.xz?viasf=1
Resolving master.dl.sourceforge.net (master.dl.sourceforge.net)... 216.105.38.12
Connecting to master.dl.sourceforge.net (master.dl.sourceforge.net)|216.105.38.12|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 30574976 (29M) [application/octet-stream]
Saving to: ‘ffmpeg-7.0-macOS-default.tar.xz’
[...]
 29800K .......... .......... .......... .......... .......... 99%  140M 0s
 29850K ........                                              100% 96.2M=5.8s

2024-10-10 16:52:26 (5.03 MB/s) - ‘ffmpeg-7.0-macOS-default.tar.xz’ saved [30574976/30574976]

Moved and renamed ffmpeg binary for externalBin

Commands to build 🔨:
bun install
bun tauri build

$ tauri build
/Users/imiell/git/screenpipe/screenpipe-app-tauri/node_modules/@tauri-apps/cli/index.js:312
    throw loadError
    ^

Error: Cannot find module '@tauri-apps/cli-darwin-x64'
Require stack:
- /Users/imiell/git/screenpipe/screenpipe-app-tauri/node_modules/@tauri-apps/cli/index.js
- /Users/imiell/git/screenpipe/screenpipe-app-tauri/node_modules/@tauri-apps/cli/main.js
- /Users/imiell/git/screenpipe/screenpipe-app-tauri/node_modules/@tauri-apps/cli/tauri.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1248:15)
    at Module._load (node:internal/modules/cjs/loader:1074:27)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
    at Module.require (node:internal/modules/cjs/loader:1339:12)
    at require (node:internal/modules/helpers:135:16)
    at Object.<anonymous> (/Users/imiell/git/screenpipe/screenpipe-app-tauri/node_modules/@tauri-apps/cli/index.js:131:29)
    at Module._compile (node:internal/modules/cjs/loader:1546:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1691:10)
    at Module.load (node:internal/modules/cjs/loader:1317:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/imiell/git/screenpipe/screenpipe-app-tauri/node_modules/@tauri-apps/cli/index.js',
    '/Users/imiell/git/screenpipe/screenpipe-app-tauri/node_modules/@tauri-apps/cli/main.js',
    '/Users/imiell/git/screenpipe/screenpipe-app-tauri/node_modules/@tauri-apps/cli/tauri.js'
  ]
}

Node.js v22.9.0
error: script "tauri" exited with code 1

system information: macos Sonoma 14.3.1 Git source from main.

linear[bot] commented 3 hours ago

MED-173 [bug] Error on MacOS when running `bun tauri build`

louis030195 commented 1 hour ago

bun i