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

fix: ci

Louis Beaumont032dd6a3fdd9
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 87d2e3f6d..49a1c6b24 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -3,45 +3,58 @@ name: Release
on:
push:
tags:
- - 'v*.*.*'
+ - "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- - name: Checkout code
- uses: actions/checkout@v2
-
- - name: Set up Rust
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- profile: minimal
- override: true
-
- - name: Build
- run: cargo build --release
- working-directory: screenpipe
-
- - name: Create Release
- id: create_release
- uses: actions/create-release@v1
- env:
- GITHUB_TOKEN: ${{ secrets.PAT }}
- with:
- tag_name: ${{ github.ref }}
- release_name: Release ${{ github.ref }}
- draft: false
- prerelease: false
-
- - name: Upload Release Asset
- uses: actions/upload-release-asset@v1
- env:
- GITHUB_TOKEN: ${{ secrets.PAT }}
- with:
- upload_url: ${{ steps.create_release.outputs.upload_url }}
- asset_path: screenpipe/target/release/screenpipe
- asset_name: screenpipe
- asset_content_type: application/octet-stream
-
+ - name: Checkout code
+ uses: actions/checkout@v2
+
+ - name: Set up Rust
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: stable
+ profile: minimal
+ override: true
+
+ - name: Build for Linux
+ run: cargo build --release --target x86_64-unknown-linux-gnu
+ working-directory: screenpipe
+
+ - name: Build for macOS
+ run: cargo build --release --target x86_64-apple-darwin
+ working-directory: screenpipe
+
+ - name: Create Release
+ id: create_release
+ uses: actions/create-release@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.PAT }}
+ with:
+ tag_name: ${{ github.ref }}
+ release_name: Release ${{ github.ref }}
+ draft: false
+ prerelease: false
+
+ - name: Upload Release Asset for Linux
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.PAT }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
+ asset_path: screenpipe/target/x86_64-unknown-linux-gnu/release/screenpipe
+ asset_name: screenpipe-linux
+ asset_content_type: application/octet-stream
+
+ - name: Upload Release Asset for macOS
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.PAT }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
+ asset_path: screenpipe/target/x86_64-apple-darwin/release/screenpipe
+ asset_name: screenpipe-macos
+ asset_content_type: application/octet-stream
diff --git a/README.md b/README.md
index b98dcd519..360d28827 100644
--- a/README.md
+++ b/README.md
@@ -60,6 +60,12 @@ To install ScreenPipe, run the following command in your terminal:
curl -sL https://raw.githubusercontent.com/louis030195/screen-pipe/main/install.sh | sh
```
+Make sure to add `$HOME/.local/bin` to your `PATH` if it's not already included:
+
+```bash
+export PATH=$HOME/.local/bin:$PATH
+```
+
## Documentation
diff --git a/install.sh b/install.sh
old mode 100644
new mode 100755
index ee1867419..8cfab685f
--- a/install.sh
+++ b/install.sh
@@ -6,10 +6,21 @@ REPO="louis030195/screen-pipe"
# Get the latest release
LATEST_RELEASE=$(curl -s https://api.github.com/repos/$REPO/releases/latest | grep "tag_name" | cut -d '"' -f 4)
-# Download the latest release binary
-curl -L "https://github.com/$REPO/releases/download/$LATEST_RELEASE/screenpipe" -o /usr/local/bin/screenpipe
+# Determine the OS and set the appropriate binary name
+OS=$(uname -s)
+case $OS in
+ Linux*) BINARY="screenpipe-linux";;
+ Darwin*) BINARY="screenpipe-macos";;
+ *) echo "Unsupported OS: $OS"; exit 1;;
+esac
+
+# Create the local bin directory if it doesn't exist
+mkdir -p $HOME/.local/bin
+
+# Download the latest release binary to the local bin directory
+curl -L "https://github.com/$REPO/releases/download/$LATEST_RELEASE/$BINARY" -o $HOME/.local/bin/screenpipe
# Make the binary executable
-chmod +x /usr/local/bin/screenpipe
+chmod +x $HOME/.local/bin/screenpipe
-echo "screenpipe installed successfully!"
\ No newline at end of file
+echo "screenpipe installed successfully! Please add $HOME/.local/bin to your PATH if it's not already included."
\ No newline at end of file