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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: ci 🦧
Louis Beaumont52f3a49c6275
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 8be93c222..5ce7d7a04 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -13,6 +13,8 @@ jobs:target:- x86_64-unknown-linux-gnu- aarch64-unknown-linux-gnu+ - x86_64-apple-darwin+ - aarch64-apple-darwinsteps:- name: Checkout code@@ -30,7 +32,6 @@ jobs:- name: Build for ${{ matrix.target }}run: cross build --release --target ${{ matrix.target }}- working-directory: screenpipe- name: Create Releaseid: create_release@@ -49,6 +50,6 @@ jobs:GITHUB_TOKEN: ${{ secrets.PAT }}with:upload_url: ${{ steps.create_release.outputs.upload_url }}- asset_path: screenpipe/target/${{ matrix.target }}/release/screenpipe+ asset_path: target/${{ matrix.target }}/release/screenpipeasset_name: screenpipe-${{ matrix.target }}asset_content_type: application/octet-streamdiff --git a/Cross.toml b/Cross.tomlindex 6fb091c22..9819aaf0e 100644--- a/Cross.toml+++ b/Cross.toml@@ -1,14 +1,12 @@[target.x86_64-unknown-linux-gnu]pre-build = ["dpkg --add-architecture $CROSS_DEB_ARCH",- "apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH && apt-get install --only-upgrade libc6:$CROSS_DEB_ARCH",- "apt-get install --assume-yes libxcb1-dev"+ "apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH && apt-get install --only-upgrade libc6:$CROSS_DEB_ARCH && apt-get install --assume-yes libxcb1-dev:$CROSS_DEB_ARCH"][target.aarch64-unknown-linux-gnu]pre-build = ["dpkg --add-architecture $CROSS_DEB_ARCH",- "apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH && apt-get install --only-upgrade libc6:$CROSS_DEB_ARCH",- "apt-get install --assume-yes libxcb1-dev"+ "apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH && apt-get install --only-upgrade libc6:$CROSS_DEB_ARCH && apt-get install --assume-yes libxcb1-dev:$CROSS_DEB_ARCH"]diff --git a/install.sh b/install.shindex 8cfab685f..3dd8dbd6c 100755--- a/install.sh+++ b/install.sh@@ -6,12 +6,28 @@ REPO="louis030195/screen-pipe"# Get the latest releaseLATEST_RELEASE=$(curl -s https://api.github.com/repos/$REPO/releases/latest | grep "tag_name" | cut -d '"' -f 4)-# Determine the OS and set the appropriate binary name+# Determine the OS and architectureOS=$(uname -s)+ARCH=$(uname -m)++# Set the appropriate binary name based on OS and architecturecase $OS in- Linux*) BINARY="screenpipe-linux";;- Darwin*) BINARY="screenpipe-macos";;- *) echo "Unsupported OS: $OS"; exit 1;;+ Linux*)+ case $ARCH in+ x86_64) BINARY="screenpipe-x86_64-unknown-linux-gnu";;+ aarch64) BINARY="screenpipe-aarch64-unknown-linux-gnu";;+ *) echo "Unsupported architecture: $ARCH"; exit 1;;+ esac+ ;;+ Darwin*)+ case $ARCH in+ x86_64) BINARY="screenpipe-x86_64-apple-darwin";;+ arm64) BINARY="screenpipe-aarch64-apple-darwin";;+ *) echo "Unsupported architecture: $ARCH"; exit 1;;+ esac+ ;;+ *)+ echo "Unsupported OS: $OS"; exit 1;;esac# Create the local bin directory if it doesn't exist@@ -23,4 +39,5 @@ curl -L "https://github.com/$REPO/releases/download/$LATEST_RELEASE/$BINARY" -o# Make the binary executablechmod +x $HOME/.local/bin/screenpipe-echo "screenpipe installed successfully! Please add $HOME/.local/bin to your PATH if it's not already included."\ No newline at end of file+echo "screenpipe installed successfully! Please add $HOME/.local/bin to your PATH if it's not already included."+diff --git a/screenpipe/src/main.rs b/screenpipe/src/main.rsindex 348be4c44..06c1d69c0 100644--- a/screenpipe/src/main.rs+++ b/screenpipe/src/main.rs@@ -47,7 +47,9 @@ fn normalized(filename: &str) -> String {fn screenpipe(path: &str, interval: f32, running: Arc<AtomicBool>) {// delete and recreate the directoryprintln!("Deleting and recreating directory {}", path);- std::fs::remove_dir_all(path).unwrap();+ if std::fs::metadata(path).is_ok() {+ std::fs::remove_dir_all(path).unwrap();+ }create_dir_all(path).unwrap();let monitors = Monitor::all().unwrap();let mut frame_count = 0;