Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

tweak doc stfuf

Louis Beaumont365b5275d24b
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index 18b5c250b..24c493fef 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -4,6 +4,38 @@
# # Run for Linux
# act -W .github/workflows/release-app.yml --container-architecture linux/amd64 -j publish-tauri -P ubuntu-24.04
+# Manual release instructions for Mac:
+
+# VERSION=app-0.1.0
+# git tag $VERSION
+# git push origin $VERSION
+# gh release create $VERSION --generate-notes
+# TAURI_SIGNING_PRIVATE_KEY="..."
+# TAURI_SIGNING_PRIVATE_KEY_PASSWORD="..."
+# export PKG_CONFIG_PATH="/usr/local/opt/ffmpeg/lib/pkgconfig:$PKG_CONFIG_PATH"
+# export PKG_CONFIG_ALLOW_CROSS=1
+# For M1 (aarch64-apple-darwin):
+# cargo build --release --features metal --target aarch64-apple-darwin
+# cd examples/apps/screenpipe-app-tauri
+# bun scripts/pre_build.js
+# bun tauri build --target aarch64-apple-darwin -- --features metal
+# tar -czf screenpipe-${VERSION}-aarch64-apple-darwin.tar.gz -C ../target/aarch64-apple-darwin/release/bundle/dmg screenpipe_0.1.0_aarch64.dmg
+# gh release upload ${VERSION} screenpipe-${VERSION}-aarch64-apple-darwin.tar.gz
+# rm screenpipe-${VERSION}-aarch64-apple-darwin.tar.gz
+#
+# For Intel (x86_64-apple-darwin):
+# cd ../../..
+# cargo build --release --features metal --target x86_64-apple-darwin
+# cd examples/apps/screenpipe-app-tauri
+# bun scripts/pre_build.js
+# bun tauri build --target x86_64-apple-darwin -- --features metal
+# tar -czf screenpipe-${VERSION}-x86_64-apple-darwin.tar.gz -C ../target/x86_64-apple-darwin/release/bundle/dmg screenpipe_0.1.0_x64.dmg
+# gh release upload ${VERSION} screenpipe-${VERSION}-x86_64-apple-darwin.tar.gz
+# rm screenpipe-${VERSION}-x86_64-apple-darwin.tar.gz
+#
+
+
+
name: Release App
on:
diff --git a/README.md b/README.md
index 374757d03..319d42a21 100644
--- a/README.md
+++ b/README.md
@@ -19,14 +19,14 @@
<a href="https://twitter.com/screen_pipe"><img alt="X account" src="https://img.shields.io/twitter/url/https/twitter.com/diffuserslib.svg?style=social&label=Follow%20%40screen_pipe"></a>
</p>
-![Demo](./public/demo.gif)
+![Demo](./content/demo.gif)
# 24/7 Screen & Audio Capture
Library to build personalized AI powered by what you've seen, said, or heard. Works with Ollama. Alternative to Rewind.ai. Open. Secure. You own your data. Rust.
We are shipping daily, make suggestions, post bugs, [give feedback](mailto:[email protected]?subject=Screenpipe%20Feedback&body=I'd%20like%20to%20use%20Screenpipe%20for%20...%0D%0A%0D%0AI%20cannot%20because%20of%20...%0D%0A%0D%0AWe%20can%20also%20have%20a%20call,%20book%20at%20https://cal.com/louis030195/screenpipe).
-![diagram](./public/diagram2.png)
+![diagram](./content/diagram2.png)
# Why?
@@ -221,10 +221,10 @@ npm install
```bash
npm run dev
```
-![Vercel App](./public/Vercel_app.png)
+![Vercel App](./content/Vercel_app.png)
<br><br>
-![Claude_prompt](./public/Claude_prompt.png)
+![Claude_prompt](./content/Claude_prompt.png)
<br><br>
</details>
@@ -245,7 +245,7 @@ Print a sample audio_transcriptions from the database</summary>
```bash
sqlite3 data/db.sqlite ".mode json" ".once /dev/stdout" "SELECT * FROM audio_transcriptions ORDER BY id DESC LIMIT 1;" | jq .
```
-![audio_transcriptions](./public/audio_transcriptions.png)
+![audio_transcriptions](./content/audio_transcriptions.png)
</details>
<details>
<summary>
@@ -254,7 +254,7 @@ Print a sample frame_OCR_text from the database</summary>
```bash
sqlite3 data/db.sqlite ".mode json" ".once /dev/stdout" "SELECT * FROM ocr_text ORDER BY frame_id DESC LIMIT 1;" | jq -r '.[0].text'
```
-![frame_text](./public/frame_text.png)
+![frame_text](./content/frame_text.png)
</details>
<details>
<summary>
@@ -281,7 +281,7 @@ ffplay "data/Display 1 (output)_2024-07-12_01-14-11.mp4"
curl "http://localhost:3030/search?q=Neuralink&limit=5&offset=0&content_type=ocr" | jq
```
"Elon Musk" prompt
-![Elon_Musk_prompt](./public/Elon_Musk_prompt.png)
+![Elon_Musk_prompt](./content/Elon_Musk_prompt.png)
</details>
<details>
<summary>Other Example to query the API</summary>
diff --git a/public/Claude_prompt.png b/content/Claude_prompt.png
similarity index 100%
rename from public/Claude_prompt.png
rename to content/Claude_prompt.png
diff --git a/public/Elon_Musk_prompt.png b/content/Elon_Musk_prompt.png
similarity index 100%
rename from public/Elon_Musk_prompt.png
rename to content/Elon_Musk_prompt.png
diff --git a/public/Vercel_app.png b/content/Vercel_app.png
similarity index 100%
rename from public/Vercel_app.png
rename to content/Vercel_app.png
diff --git a/public/audio_transcriptions.png b/content/audio_transcriptions.png
similarity index 100%
rename from public/audio_transcriptions.png
rename to content/audio_transcriptions.png
diff --git a/public/demo.gif b/content/demo.gif
similarity index 100%
rename from public/demo.gif
rename to content/demo.gif
diff --git a/public/diagram2.png b/content/diagram2.png
similarity index 100%
rename from public/diagram2.png
rename to content/diagram2.png
diff --git a/content/docs/NOTES.md b/content/docs/NOTES.md
new file mode 100644
index 000000000..59a769095
--- /dev/null
+++ b/content/docs/NOTES.md
@@ -0,0 +1,39 @@
+
+# Notes
+
+## Troubleshooting / Product FAQ
+
+<details>
+ <summary>I can't open files</summary>
+
+ Sometimes the file is still being written to, so wait a bit and try again.
+
+</details>
+
+<details>
+ <summary>All files are 10 KB</summary>
+
+ Some audio files might be small, like when there is no sound at all.
+</details>
+
+<details>
+ <summary>Audio does not work</summary>
+
+ Make sure to enable permissions.
+ Screenshot HERE
+</details>
+
+<details>
+ <summary>Screen capture does not work</summary>
+ Make sure to enable permissions.
+ Screenshot HERE
+</details>
+
+<details>
+ <summary>Where are the files?</summary>
+
+ By default files are in your home directory under `.screenpipe`.
+</details>
+
+
+
diff --git a/public/frame_text.png b/content/frame_text.png
similarity index 100%
rename from public/frame_text.png
rename to content/frame_text.png
diff --git a/examples/apps/screenpipe-app-tauri/scripts/pre_build.js b/examples/apps/screenpipe-app-tauri/scripts/pre_build.js
index ba7e8c631..68c45b8ea 100644
--- a/examples/apps/screenpipe-app-tauri/scripts/pre_build.js
+++ b/examples/apps/screenpipe-app-tauri/scripts/pre_build.js
@@ -126,10 +126,24 @@ if (platform == 'macos') {
await $`mv ${config.macos.ffmpegName} ${config.ffmpegRealname}`
await $`rm ${config.macos.ffmpegName}.tar.xz`
}
- // install screenpipe through brew
- // await $`brew tap louis030195/screen-pipe https://github.com/louis030195/screen-pipe.git`
- // await $`brew install screenpipe`
- await $`cp ${cwd}/../../../../target/release/screenpipe ./`
+ // Try multiple potential paths for the screenpipe binary
+ // ! ugly hack bcs CI acts weird
+ const potentialPaths = [
+ '../../../../target/release/screenpipe',
+ '/Users/runner/work/screen-pipe/screen-pipe/target/release/screenpipe',
+ '../../../target/release/screenpipe',
+ '../../target/release/screenpipe',
+ ];
+
+ for (const path of potentialPaths) {
+ try {
+ await $`cp ${path} ./`
+ console.log(`Successfully copied screenpipe from ${path}`);
+ break;
+ } catch (error) {
+ console.log(`Failed to copy from ${path}: ${error.message}`);
+ }
+ }
await $`sudo cp /opt/homebrew/bin/tesseract ./`
}