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.5k stars 395 forks source link

[bug] A public key has been found, but no private key. #479

Open twilwa opened 3 hours ago

twilwa commented 3 hours ago

describe the bug brief description of the bug.

When building 0.3.6 appimage from source, the following error occurs and the build fails:

   Compiling screenpipe-app v0.3.6 (/home/anon/repos/screenpipe/screenpipe-app-tauri/src-tauri)
    Finished `release` profile [optimized] target(s) in 56.33s
    Built application at: /home/anon/repos/screenpipe/screenpipe-app-tauri/src-tauri/target/release/screenpipe-app
    Bundling screenpipe_0.3.6_amd64.AppImage (/home/anon/repos/screenpipe/screenpipe-app-tauri/src-tauri/target/release/bundle/appimage/screenpipe_0.3.6_amd64.AppImage)
    Finished 1 bundle at:
        /home/anon/repos/screenpipe/screenpipe-app-tauri/src-tauri/target/release/bundle/appimage/screenpipe_0.3.6_amd64.AppImage

A public key has been found, but no private key. Make sure to set `TAURI_SIGNING_PRIVATE_KEY` environment variable.
    Error A public key has been found, but no private key. Make sure to set `TAURI_SIGNING_PRIVATE_KEY` environment variable.
error: script "tauri" exited with code 1

to reproduce

  1. Build from source
  2. 'tauri run build' step from screenpipe docs

expected behavior what should happen? Appimage builds successfully

system info

additional context add any other context, screenshots, or error logs here.

Error is resolved by running the folllowing:

bun tauri signer generate -w ~/.tauri/screenpipe.key
export TAURI_SIGNING_PRIVATE_KEY=$(cat ~/.tauri/screenpipe.key)

Unfamiliar with how to modify tauri build scripts, but can toss a PR if you wanna point me in the right direction, unless it's trivial for you guys. No longer a blocker for me, but thought I'd document in case it's useful.

linear[bot] commented 3 hours ago

MED-185 [bug] A public key has been found, but no private key.