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
pre release
Louis Beaumont50d22ce48298
diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.ymlindex 868f57653..6a6e2fe3e 100644--- a/.github/workflows/release-cli.yml+++ b/.github/workflows/release-cli.yml@@ -30,20 +30,49 @@ jobs:override: truetarget: ${{ matrix.target }}+ - name: Cache Homebrew packages+ uses: actions/cache@v3+ with:+ path: |+ ~/Library/Caches/Homebrew+ /usr/local/Cellar/ffmpeg+ /usr/local/Cellar/pkg-config+ key: ${{ runner.os }}-brew-${{ hashFiles('.github/workflows/release-cli.yml') }}+ restore-keys: |+ ${{ runner.os }}-brew-+- name: Install dependenciesrun: |brew install ffmpeg pkg-config+ - uses: actions/cache@v3+ with:+ path: |+ ~/.cargo/bin/+ ~/.cargo/registry/index/+ ~/.cargo/registry/cache/+ ~/.cargo/git/db/+ key: ${{ matrix.platform }}-cargo-${{ hashFiles('**/Cargo.lock') }}+- name: Build with Metal featurerun: |export PKG_CONFIG_PATH="/usr/local/opt/ffmpeg/lib/pkgconfig:$PKG_CONFIG_PATH"export PKG_CONFIG_ALLOW_CROSS=1cargo build --release --features metal --target ${{ matrix.target }}+ - name: Set version+ run: |+ VERSION=${GITHUB_REF#refs/tags/}+ if [[ $VERSION != v* ]]; then+ VERSION=$(git describe --tags --abbrev=0)+ fi+ VERSION=${VERSION#v}+ echo "VERSION=$VERSION" >> $GITHUB_ENV+- name: Create deployment packagerun: |- VERSION=${GITHUB_REF#refs/tags/v}- tar -czf screenpipe-${VERSION}-${{ matrix.target }}.tar.gz -C target/release screenpipe+ # ls -R target/release+ tar -czf screenpipe-${{ env.VERSION }}-${{ matrix.target }}.tar.gz -C target/release screenpipe- name: Calculate SHA256run: |@@ -51,7 +80,7 @@ jobs:- name: Update Homebrew Formularun: |- VERSION=${GITHUB_REF#refs/tags/v}+ export VERSION=${{ env.VERSION }}sed 's/version ".*"/version "'$VERSION'"/' Formula/screenpipe.rb > Formula/screenpipe.tmp && mv Formula/screenpipe.tmp Formula/screenpipe.rbif [ "${{ matrix.target }}" = "x86_64-apple-darwin" ]; thensed 's/sha256 ".*" # x86_64/sha256 "'${{ env.MAC_SHA256_x86_64-apple-darwin }}'" # x86_64/' Formula/screenpipe.rb > Formula/screenpipe.tmp && mv Formula/screenpipe.tmp Formula/screenpipe.rb@@ -67,7 +96,7 @@ jobs:git config user.name github-actionsgit config user.email [email protected]git add Formula/screenpipe.rb- git commit -m "chore: update brew to version ${GITHUB_REF#refs/tags/v} for ${{ matrix.target }}"+ git commit -m "chore: update brew to version ${{ env.VERSION }} for ${{ matrix.target }}"git push- name: Upload Artifact@@ -199,8 +228,12 @@ jobs:- name: Set Versionshell: bashrun: |- echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV- echo "RELEASE_VERSION=$(echo ${GITHUB_REF_NAME} | cut -f1 -d-)" >> $GITHUB_ENV+ if [[ $GITHUB_REF_NAME != v* ]]; then+ VERSION=$(git describe --tags --abbrev=0)+ fi+ VERSION=${VERSION#v}+ echo "VERSION=$VERSION" >> $GITHUB_ENV+ echo "RELEASE_VERSION=$(echo ${VERSION} | cut -f1 -d-)" >> $GITHUB_ENV- name: Create or update Releaseenv:diff --git a/Formula/screenpipe.rb b/Formula/screenpipe.rbindex 5724889dd..e40a74ad0 100644--- a/Formula/screenpipe.rb+++ b/Formula/screenpipe.rb@@ -33,11 +33,23 @@ class Screenpipe < Formula# wait linux release# then+# aarch64-apple-darwin# cargo build --release --features metal --target aarch64-apple-darwin# tar -czf screenpipe-${VERSION}-aarch64-apple-darwin.tar.gz -C target/release screenpipe# shasum -a 256 screenpipe-${VERSION}-aarch64-apple-darwin.tar.gz# gh release upload v${VERSION} screenpipe-${VERSION}-aarch64-apple-darwin.tar.gz# rm screenpipe-${VERSION}-aarch64-apple-darwin.tar.gz++# x86_64-apple-darwin+# export PKG_CONFIG_PATH="/usr/local/opt/ffmpeg/lib/pkgconfig:$PKG_CONFIG_PATH"+# export PKG_CONFIG_ALLOW_CROSS=1+# cargo build --release --features metal --target x86_64-apple-darwin+# tar -czf screenpipe-${VERSION}-x86_64-apple-darwin.tar.gz -C target/release screenpipe+# shasum -a 256 screenpipe-${VERSION}-x86_64-apple-darwin.tar.gz+# gh release upload v${VERSION} screenpipe-${VERSION}-x86_64-apple-darwin.tar.gz+# rm screenpipe-${VERSION}-x86_64-apple-darwin.tar.gz++# update the ruby code above (version and sha256)# git add Formula/screenpipe.rb# git commit -m "chore: update brew to version ${VERSION}"diff --git a/examples/apps/screenpipe-app-tauri/scripts/pre_build.js b/examples/apps/screenpipe-app-tauri/scripts/pre_build.jsindex 36beecd67..ba7e8c631 100644--- a/examples/apps/screenpipe-app-tauri/scripts/pre_build.js+++ b/examples/apps/screenpipe-app-tauri/scripts/pre_build.js@@ -14,7 +14,7 @@ const platform = {linux: 'linux',}[os.platform()]const cwd = process.cwd()-+console.log('cwd', cwd)function hasFeature(name) {return process.argv.includes(`--${name}`) || process.argv.includes(name)}@@ -121,7 +121,7 @@ if (platform == 'windows') {if (platform == 'macos') {// Setup FFMPEGif (!(await fs.exists(config.ffmpegRealname))) {- await $`wget -nc --show-progress ${config.macos.ffmpegUrl} -O ${config.macos.ffmpegName}.tar.xz`+ await $`wget -nc ${config.macos.ffmpegUrl} -O ${config.macos.ffmpegName}.tar.xz`await $`tar xf ${config.macos.ffmpegName}.tar.xz`await $`mv ${config.macos.ffmpegName} ${config.ffmpegRealname}`await $`rm ${config.macos.ffmpegName}.tar.xz`@@ -129,7 +129,7 @@ if (platform == 'macos') {// install screenpipe through brew// await $`brew tap louis030195/screen-pipe https://github.com/louis030195/screen-pipe.git`// await $`brew install screenpipe`- await $`cp ../../../../target/release/screenpipe ./`+ await $`cp ${cwd}/../../../../target/release/screenpipe ./`await $`sudo cp /opt/homebrew/bin/tesseract ./`}