Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tauri Desktop App Not Building on Macos #120

Closed
DmacMcgreg opened this issue Aug 7, 2024 · 4 comments
Closed

Tauri Desktop App Not Building on Macos #120

DmacMcgreg opened this issue Aug 7, 2024 · 4 comments

Comments

@DmacMcgreg
Copy link
Contributor

DmacMcgreg commented Aug 7, 2024

Steps to Reproduce:

  1. clone repo
  2. brew tap louis030195/screen-pipe https://github.com/louis030195/screen-pipe.git
    brew install screenpipe
    brew install pkg-config ffmpeg jq tesseract
  3. cd examples/apps/screenpipe-app-tauri
  4. bun run ./scripts/pre-build
  5. bunx tauri build -- --features metal

What Happens:

Caused by:
  process didn't exit successfully: `/Users/davidmcgregor/sp/examples/apps/screenpipe-app-tauri/src-tauri/target/release/build/screenpipe-app-02ae875ec33fcadd/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=TAURI_CONFIG
  cargo:rerun-if-changed=tauri.conf.json
  cargo:rustc-check-cfg=cfg(desktop)
  cargo:rustc-cfg=desktop
  cargo:rustc-check-cfg=cfg(mobile)
  cargo:rustc-env=TAURI_ANDROID_PACKAGE_NAME_APP_NAME=pe
  cargo:rustc-env=TAURI_ANDROID_PACKAGE_NAME_PREFIX=screenpi
  cargo:rustc-check-cfg=cfg(dev)
  cargo:PERMISSION_FILES_PATH=/Users/davidmcgregor/sp/examples/apps/screenpipe-app-tauri/src-tauri/target/release/build/screenpipe-app-b5e9e3d4ea269584/out/app-manifest/__app__-permission-files
  cargo:rerun-if-changed=capabilities
  cargo:rustc-env=TAURI_ENV_TARGET_TRIPLE=aarch64-apple-darwin
  cargo:rerun-if-changed=tesseract-aarch64-apple-darwin/bin/tesseract
  cargo:rerun-if-changed=tesseract-aarch64-apple-darwin/bin/tesseract-aarch64-apple-darwin
  cargo:rerun-if-changed=tesseract-aarch64-apple-darwin/tesseract
  cargo:rerun-if-changed=tesseract-aarch64-apple-darwin/tesseract-aarch64-apple-darwin
  path matching screenpipe-aarch64-apple-darwin not found.
    Error failed to build app: failed to build app

Same error but with

  path matching tesseract-aarch64-apple-darwin not found.
    Error failed to build app: failed to build app

It seems like its expecting tesseract and screenpipe to exist within folders that do not exist.
Is there even a build script to run this locally? or is it only meant to run from github actions?

@DmacMcgreg
Copy link
Contributor Author

I've tried copying manuallythe homebrew versions into src-tauri, under the name it expects... and here is the next errors:

 ✓ Finalizing page optimization

Route (app)                              Size     First Load JS
┌ ○ /                                    388 kB          476 kB
└ ○ /_not-found                          1.02 kB          89 kB
+ First Load JS shared by all            87.9 kB
  ├ chunks/23-18a68ddaad32f42b.js        31.9 kB
  ├ chunks/fd9d1056-20dd6a81848e770a.js  53.8 kB
  └ other shared chunks (total)          2.26 kB


○  (Static)  prerendered as static content

   Compiling screenpipe-app v0.1.23 (/Users/davidmcgregor/sp/examples/apps/screenpipe-app-tauri/src-tauri)
warning: unused import: `tauri::State`
  --> src/main.rs:21:5
   |
21 | use tauri::State;
   |     ^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: field `0` is never read
  --> src/main.rs:31:21
   |
31 | struct SidecarState(Arc<Mutex<Option<CommandChild>>>);
   |        ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |        |
   |        field in this struct
   |
   = note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
31 | struct SidecarState(());
   |                     ~~

warning: `screenpipe-app` (bin "screenpipe-app") generated 2 warnings (run `cargo fix --bin "screenpipe-app"` to apply 1 suggestion)
    Finished `release` profile [optimized] target(s) in 34.45s
    Built application at: /Users/davidmcgregor/sp/examples/apps/screenpipe-app-tauri/src-tauri/target/release/screenpipe-app
    Bundling screenpipe.app (/Users/davidmcgregor/sp/examples/apps/screenpipe-app-tauri/src-tauri/target/release/bundle/macos/screenpipe.app)
    Error failed to bundle project: Failed to copy external binaries: `Permission denied (os error 13)`: Permission denied (os error 13)
    ```

@DmacMcgreg
Copy link
Contributor Author

ok so looks like using sudo worked here.. but I think it shouldn't really need that?

@louis030195
Copy link
Collaborator

@DmacMcgreg congrats on building the app

if you send a PR with a traymenu like this:

image

i'd give you a free app license for you or friend (so you get auto updater, priority support & features)

what do you think?

docs:

https://v2.tauri.app/start/

you probably need to add there https://github.com/louis030195/screen-pipe/blob/main/examples/apps/screenpipe-app-tauri/src-tauri/src/main.rs

probably just a few lines of code!

lmk!

@DmacMcgreg
Copy link
Contributor Author

#126

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants