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
feat: embed linux cli in app, automate macos release app
Louis Beaumontb73c9a60592b
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex 6eb2d8edb..a23e550b3 100644--- a/.github/workflows/release-app.yml+++ b/.github/workflows/release-app.yml@@ -34,12 +34,12 @@ jobs:matrix:include:# ! manual release on mac for now- # - platform: "macos-latest" # for Arm based macs (M1 and above).- # args: "--target aarch64-apple-darwin --features metal"- # target: aarch64-apple-darwin- # - platform: "macos-latest" # for Intel based macs.- # args: "--target x86_64-apple-darwin --features metal"- # target: x86_64-apple-darwin+ - platform: "macos-latest" # for Arm based macs (M1 and above).+ args: "--target aarch64-apple-darwin --features metal"+ target: aarch64-apple-darwin+ - platform: "macos-latest" # for Intel based macs.+ args: "--target x86_64-apple-darwin --features metal"+ target: x86_64-apple-darwin- platform: "ubuntu-22.04" # Ubuntu x86_64args: "" # TODO CUDA- platform: "windows-latest" # Windows x86_64diff --git a/examples/apps/screenpipe-app-tauri/scripts/pre_build.js b/examples/apps/screenpipe-app-tauri/scripts/pre_build.jsindex 4aa85bca7..f926b8303 100644--- a/examples/apps/screenpipe-app-tauri/scripts/pre_build.js+++ b/examples/apps/screenpipe-app-tauri/scripts/pre_build.js@@ -101,6 +101,35 @@ if (platform == 'linux') {for (const name of config.linux.aptPackages) {await $`sudo apt-get install -y ${name}`}++ // Copy screenpipe binary+ console.log('Copying screenpipe binary for Linux...');+ const potentialPaths = [+ path.join(__dirname, '..', '..', '..', '..', 'target', 'release', 'screenpipe'),+ path.join(__dirname, '..', '..', '..', '..', 'target', 'x86_64-unknown-linux-gnu', 'release', 'screenpipe'),+ path.join(__dirname, '..', '..', '..', 'target', 'release', 'screenpipe'),+ path.join(__dirname, '..', '..', 'target', 'release', 'screenpipe'),+ '/home/runner/work/screen-pipe/screen-pipe/target/release/screenpipe',+ ];++ let copied = false;+ for (const screenpipeSrc of potentialPaths) {+ const screenpipeDest = path.join(cwd, 'screenpipe-x86_64-unknown-linux-gnu');+ try {+ await fs.copyFile(screenpipeSrc, screenpipeDest);+ console.log(`screenpipe binary copied successfully from ${screenpipeSrc}`);+ copied = true;+ break;+ } catch (error) {+ console.warn(`failed to copy screenpipe binary from ${screenpipeSrc}:`, error);+ }+ }++ if (!copied) {+ console.error("failed to copy screenpipe binary from any potential path.");+ // uncomment the following line if you want the script to exit on failure+ // process.exit(1);+ }}/* ########## Windows ########## */diff --git a/examples/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/examples/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 247d828ce..de97c7f82 100644--- a/examples/apps/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/examples/apps/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "0.1.43"+version = "0.1.44"description = ""authors = ["you"]license = ""diff --git a/examples/apps/screenpipe-app-tauri/src-tauri/tauri.linux.conf.json b/examples/apps/screenpipe-app-tauri/src-tauri/tauri.linux.conf.jsonindex e4062ec54..70908e500 100644--- a/examples/apps/screenpipe-app-tauri/src-tauri/tauri.linux.conf.json+++ b/examples/apps/screenpipe-app-tauri/src-tauri/tauri.linux.conf.json@@ -1,5 +1,8 @@{"bundle": {+ "externalBin": [+ "screenpipe"+ ],"linux": {"deb": {"depends": [