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: add beta release channel for experimental builds (#2109)
Louis Beaumontc5caa5042799
diff --git a/.github/workflows/release-app-beta.yml b/.github/workflows/release-app-beta.ymlnew file mode 100644index 000000000..04d044b1b--- /dev/null+++ b/.github/workflows/release-app-beta.yml@@ -0,0 +1,266 @@+# Beta release workflow for screenpipe+# Builds and releases to the beta channel on CrabNebula++name: Release App (Beta)++on:+ workflow_dispatch:+ inputs:+ version:+ description: "Version to release (e.g., 0.3.3-beta.1)"+ required: true+ push:+ branches: [main]++jobs:+ check_commit:+ runs-on: ubuntu-latest+ outputs:+ should_release: ${{ steps.check.outputs.should_release }}+ should_publish: ${{ steps.check.outputs.should_publish }}+ steps:+ - uses: actions/checkout@v4+ with:+ fetch-depth: 2+ - id: check+ run: |+ COMMIT_MSG=$(git log -1 --pretty=%B)+ if echo "$COMMIT_MSG" | grep -q "release-app-beta"; then+ echo "should_release=true" >> $GITHUB_OUTPUT+ else+ echo "should_release=false" >> $GITHUB_OUTPUT+ fi+ if echo "$COMMIT_MSG" | grep -q "release-app-beta-publish"; then+ echo "should_publish=true" >> $GITHUB_OUTPUT+ else+ echo "should_publish=false" >> $GITHUB_OUTPUT+ fi++ draft:+ needs: [check_commit]+ if: github.event_name == 'workflow_dispatch' || needs.check_commit.outputs.should_release == 'true'+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4++ - name: Update version in Cargo.toml+ if: github.event.inputs.version+ run: |+ sed -i 's/^version = ".*"/version = "${{ github.event.inputs.version }}"/' screenpipe-app-tauri/src-tauri/Cargo.toml++ - name: create draft release+ uses: crabnebula-dev/[email protected]+ with:+ command: release draft ${{ secrets.CN_APP_SLUG_BETA }} --framework tauri+ api-key: ${{ secrets.CN_API_KEY }}++ publish-tauri:+ needs: [check_commit, draft]+ if: github.event_name == 'workflow_dispatch' || needs.check_commit.outputs.should_release == 'true'+ permissions:+ contents: write+ strategy:+ fail-fast: false+ matrix:+ include:+ - platform: "macos-latest"+ args: "--target aarch64-apple-darwin --features metal"+ target: aarch64-apple-darwin+ tauri-args: "--target aarch64-apple-darwin"+ os_type: "macos"+ - platform: "macos-latest"+ args: "--target x86_64-apple-darwin --features metal"+ target: x86_64-apple-darwin+ tauri-args: "--target x86_64-apple-darwin"+ os_type: "macos"+ - platform: "windows-2019"+ args: "--target x86_64-pc-windows-msvc --features mkl"+ pre-build-args: ""+ tauri-args: "--target x86_64-pc-windows-msvc"+ os_type: "windows"++ runs-on: ${{ matrix.platform }}+ steps:+ - name: Enable Git long paths on Windows+ if: matrix.os_type == 'windows'+ shell: powershell+ run: |+ git config --system core.longpaths true++ - uses: actions/checkout@v4++ - name: Update version in Cargo.toml (Unix)+ if: github.event.inputs.version && matrix.platform == 'macos-latest'+ shell: bash+ run: |+ sed -i '' 's/^version = ".*"/version = "${{ github.event.inputs.version }}"/' screenpipe-app-tauri/src-tauri/Cargo.toml++ - name: Update version in Cargo.toml (Windows)+ if: github.event.inputs.version && matrix.platform != 'macos-latest'+ shell: pwsh+ run: |+ $content = Get-Content screenpipe-app-tauri/src-tauri/Cargo.toml+ $content = $content -replace '^version = ".*"', ('version = "' + '${{ github.event.inputs.version }}' + '"')+ $content | Set-Content screenpipe-app-tauri/src-tauri/Cargo.toml -Force++ - name: Setup Bun+ uses: oven-sh/setup-bun@v2+ with:+ bun-version: 1.2.2++ - name: Setup Node+ uses: actions/setup-node@v4+ with:+ node-version: 20++ - name: Set up Rust+ if: matrix.os_type != 'windows'+ uses: dtolnay/rust-toolchain@stable+ with:+ toolchain: stable+ targets: ${{ matrix.target }}++ - name: Install Rust+ if: matrix.os_type == 'windows'+ run: |+ Invoke-WebRequest https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-gnu/rustup-init.exe -OutFile rustup-init.exe+ .\rustup-init.exe -y++ - name: setup rust path+ if: matrix.os_type == 'windows'+ shell: powershell+ run: |+ $env:PATH = "$env:USERPROFILE\.cargo\bin;$env:PATH"+ echo "$env:USERPROFILE\.cargo\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append++ - name: Rust Cache+ uses: Swatinem/rust-cache@v2+ with:+ key: ${{ runner.os }}-rust-${{ matrix.target }}-beta++ - name: Install dependencies (macOS)+ if: matrix.os_type == 'macos'+ run: brew install ffmpeg++ - name: Install frontend dependencies+ working-directory: ./screenpipe-app-tauri+ run: bun install++ - name: Install vcpkg+ if: matrix.os_type == 'windows'+ uses: lukka/run-vcpkg@v11+ with:+ vcpkgGitCommitId: "7adc2e4d49e8d0efc07a369079faa6bc3dbb90f3"++ - name: Set up MSVC+ if: matrix.os_type == 'windows'+ uses: ilammy/msvc-dev-cmd@v1++ - name: Run pre_build.js+ env:+ SKIP_SCREENPIPE_SETUP: true+ run: bun ./scripts/pre_build.js ${{ matrix.pre-build-args }}+ working-directory: ./screenpipe-app-tauri++ - name: Build CLI+ if: matrix.os_type != 'windows'+ shell: bash+ run: |+ if [[ "${{ matrix.os_type }}" == "macos" ]]; then+ export PKG_CONFIG_PATH="/usr/local/opt/ffmpeg/lib/pkgconfig:$PKG_CONFIG_PATH"+ export PKG_CONFIG_ALLOW_CROSS=1+ if [[ "${{ matrix.target }}" == "aarch64-apple-darwin" ]]; then+ export CFLAGS="-march=armv8.5-a"+ export CXXFLAGS="-march=armv8.5-a"+ fi+ fi+ cargo build --release -p screenpipe-server ${{ matrix.args }}++ - name: Build CLI on Windows+ if: matrix.os_type == 'windows'+ shell: powershell+ run: cargo build --release -p screenpipe-server ${{ matrix.args }}++ - name: Run pre_build.js (copy CLI)+ run: bun ./scripts/pre_build.js ${{ matrix.pre-build-args }}+ working-directory: ./screenpipe-app-tauri++ # Use BETA config instead of prod config+ - name: Use beta config for release+ shell: bash+ run: cp screenpipe-app-tauri/src-tauri/tauri.beta.conf.json screenpipe-app-tauri/src-tauri/tauri.conf.json++ - name: Build+ uses: tauri-apps/[email protected]+ env:+ TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}+ TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}+ APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}+ APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}+ APPLE_ID: ${{ secrets.APPLE_ID }}+ APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}+ APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}+ CI: true+ CFLAGS: ${{ matrix.target == 'aarch64-apple-darwin' && '-march=armv8.5-a' || '' }}+ CXXFLAGS: ${{ matrix.target == 'aarch64-apple-darwin' && '-march=armv8.5-a' || '' }}+ with:+ args: ${{ matrix.tauri-args }}+ projectPath: "./screenpipe-app-tauri"+ tauriScript: bunx tauri++ - name: Upload Assets to CrabNebula Cloud (Beta)+ if: matrix.os_type != 'windows'+ uses: crabnebula-dev/[email protected]+ with:+ command: release upload ${{ secrets.CN_APP_SLUG_BETA }} --framework tauri+ api-key: ${{ secrets.CN_API_KEY }}+ path: ./screenpipe-app-tauri/src-tauri++ publish-release:+ needs: [check_commit, publish-tauri]+ if: needs.check_commit.outputs.should_publish == 'true'+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4++ - name: Get version from Cargo.toml+ id: get_version+ run: |+ VERSION=$(grep '^version = ' screenpipe-app-tauri/src-tauri/Cargo.toml | sed 's/version = "\(.*\)"/\1/')+ echo "VERSION=$VERSION" >> $GITHUB_ENV++ - name: Publish Release on CrabNebula Cloud (Beta)+ uses: crabnebula-dev/[email protected]+ with:+ command: release publish ${{ secrets.CN_APP_SLUG_BETA }} ${{ env.VERSION }}+ api-key: ${{ secrets.CN_API_KEY }}++ - name: Create beta release announcement+ uses: actions/github-script@v6+ with:+ github-token: ${{ secrets.GITHUB_TOKEN }}+ script: |+ const message = `+ ## 🧪 Beta Release v${{ env.VERSION }}++ A new beta version is available for testing!++ **Download:** [CrabNebula Cloud](https://web.crabnebula.cloud/mediar/screenpipe-beta/releases)++ **Note:** This is a beta release with experimental features. Please report any issues on GitHub.++ ### What's different in beta?+ - Separate app bundle (\`screenpipe beta.app\`)+ - Can run alongside stable version+ - Experimental features enabled+ `;++ await github.rest.issues.create({+ owner: context.repo.owner,+ repo: context.repo.repo,+ title: \`🧪 Beta Release: v${{ env.VERSION }}\`,+ body: message,+ labels: ['beta', 'release']+ });diff --git a/screenpipe-app-tauri/components/settings/general-settings.tsx b/screenpipe-app-tauri/components/settings/general-settings.tsxindex fdb0e8c74..67c1c2724 100644--- a/screenpipe-app-tauri/components/settings/general-settings.tsx+++ b/screenpipe-app-tauri/components/settings/general-settings.tsx@@ -6,12 +6,17 @@ import { useTheme } from "@/components/theme-provider";import { Switch } from "@/components/ui/switch";import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";import { Separator } from "@/components/ui/separator";-import { Rocket, Moon, Sun, Monitor } from "lucide-react";+import { Rocket, Moon, Sun, Monitor, FlaskConical, Shield } from "lucide-react";+import { UpdateChannel } from "@/lib/hooks/use-settings";+import { checkForAppUpdates } from "@/components/updater";+import { useToast } from "@/components/ui/use-toast";+import { Button } from "@/components/ui/button";import { SettingsStore } from "@/lib/utils/tauri";export default function GeneralSettings() {const { settings, updateSettings } = useSettings();const { theme, setTheme } = useTheme();+ const { toast } = useToast();const handleSettingsChange = (newSettings: Partial<SettingsStore>) => {if (settings) {@@ -40,6 +45,41 @@ export default function GeneralSettings() {},];+ const channelOptions: { value: UpdateChannel; label: string; description: string; icon: typeof Shield }[] = [+ {+ value: "stable",+ label: "Stable",+ description: "Recommended for most users",+ icon: Shield,+ },+ {+ value: "beta",+ label: "Beta",+ description: "Early access to new features",+ icon: FlaskConical,+ },+ ];++ const handleChannelChange = async (channel: UpdateChannel) => {+ await handleSettingsChange({ updateChannel: channel });++ // Immediately check for updates on the new channel+ toast({+ title: `Switched to ${channel} channel`,+ description: "Checking for updates...",+ duration: 3000,+ });++ const update = await checkForAppUpdates({ toast, channel });+ if (!update?.available) {+ toast({+ title: "You're up to date",+ description: `No ${channel} updates available`,+ duration: 3000,+ });+ }+ };+return (<div className="space-y-8"><div className="space-y-3">@@ -141,12 +181,74 @@ export default function GeneralSettings() {</div></CardContent></Card>++ <Card className="border-border bg-card shadow-sm">+ <CardContent className="p-6">+ <div className="space-y-4">+ <div className="flex items-start space-x-4">+ <div className="p-2 bg-primary/10 rounded-lg">+ <FlaskConical className="h-5 w-5 text-primary" />+ </div>+ <div className="space-y-1 flex-1">+ <h3 className="text-lg font-semibold text-foreground">+ Update Channel+ </h3>+ <p className="text-sm text-muted-foreground leading-relaxed">+ Choose which update channel to receive. Beta gets early access to new features but may have bugs.+ </p>+ </div>+ </div>++ <div className="space-y-3 ml-16">+ {channelOptions.map((option) => {+ const IconComponent = option.icon;+ const currentChannel = settings?.updateChannel ?? "stable";+ return (+ <label+ key={option.value}+ className="flex items-center space-x-3 cursor-pointer group"+ >+ <input+ type="radio"+ name="updateChannel"+ value={option.value}+ checked={currentChannel === option.value}+ onChange={() => handleChannelChange(option.value)}+ className="sr-only"+ />+ <div className={`+ flex items-center justify-center w-4 h-4 rounded-full border-2 transition-colors+ ${currentChannel === option.value+ ? 'border-primary bg-primary'+ : 'border-muted-foreground group-hover:border-primary'+ }+ `}>+ {currentChannel === option.value && (+ <div className="w-2 h-2 rounded-full bg-primary-foreground" />+ )}+ </div>+ <div className="flex items-center space-x-2">+ <IconComponent className="h-4 w-4 text-muted-foreground" />+ <span className="text-sm font-medium text-foreground">+ {option.label}+ </span>+ <span className="text-xs text-muted-foreground">+ {option.description}+ </span>+ </div>+ </label>+ );+ })}+ </div>+ </div>+ </CardContent>+ </Card></div><div className="pt-4"><div className="p-4 bg-primary/5 border border-primary/20 rounded-lg"><p className="text-sm text-primary">- 💡 <strong>Tip:</strong> Auto-start ensures continuous recording so you never miss capturing important moments.+ Auto-start ensures continuous recording so you never miss capturing important moments.</p></div></div>diff --git a/screenpipe-app-tauri/components/updater.tsx b/screenpipe-app-tauri/components/updater.tsxindex bea1c8932..82bf111e6 100644--- a/screenpipe-app-tauri/components/updater.tsx+++ b/screenpipe-app-tauri/components/updater.tsx@@ -2,15 +2,38 @@ import { check } from "@tauri-apps/plugin-updater";import { ask, message } from "@tauri-apps/plugin-dialog";import { relaunch } from "@tauri-apps/plugin-process";import { invoke } from "@tauri-apps/api/core";-import { platform } from "@tauri-apps/plugin-os";+import { platform, arch } from "@tauri-apps/plugin-os";+import type { UpdateChannel } from "@/lib/hooks/use-settings";-export async function checkForAppUpdates({ toast }: { toast: any }) {- const update = await check();+const UPDATE_ENDPOINTS = {+ stable: "https://cdn.crabnebula.app/update/mediar/screenpipe",+ beta: "https://cdn.crabnebula.app/update/mediar/screenpipe-beta",+} as const;++export async function checkForAppUpdates({+ toast,+ channel = "stable"+}: {+ toast: any;+ channel?: UpdateChannel;+}) {+ const os = platform();+ const cpuArch = arch();++ // Build the endpoint URL for the selected channel+ const baseEndpoint = UPDATE_ENDPOINTS[channel];+ const target = os === "macos" ? "darwin" : os;+ const endpoint = `${baseEndpoint}/${target}-${cpuArch}/{{current_version}}`;++ const update = await check({+ endpoints: [endpoint],+ });if (update?.available) {+ const channelLabel = channel === "beta" ? " (Beta)" : "";const yes = await ask(`-Update to ${update.version} is available!+Update to ${update.version}${channelLabel} is available!Release notes: ${update.body}`,{@@ -23,14 +46,13 @@ Release notes: ${update.body}if (yes) {// on windows only - TODO shouldnt be necessary- const os = platform();if (os === "windows") {await invoke("stop_screenpipe");}const toastId = toast({title: "Updating...",- description: "Downloading and installing update",+ description: `Downloading and installing ${channel} update`,duration: Infinity,});@@ -54,4 +76,6 @@ Release notes: ${update.body}}}}++ return update;}diff --git a/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/screenpipe-app-tauri/lib/hooks/use-settings.tsxindex 328e3e965..9368394c4 100644--- a/screenpipe-app-tauri/lib/hooks/use-settings.tsx+++ b/screenpipe-app-tauri/lib/hooks/use-settings.tsx@@ -52,10 +52,13 @@ export type AIPreset = {});+export type UpdateChannel = "stable" | "beta";+// Extend SettingsStore with deviceId (for AI free tier tracking)// This is added here until the Rust types are regeneratedexport type Settings = SettingsStore & {deviceId?: string;+ updateChannel?: UpdateChannel;}export const DEFAULT_PROMPT = `Rules:@@ -143,6 +146,7 @@ let DEFAULT_SETTINGS: Settings = {port: 11434,},enableBeta: false,+ updateChannel: "stable",isFirstTimeUser: true,autoStartEnabled: true,enableFrameCache: true,diff --git a/screenpipe-app-tauri/src-tauri/icons/beta/1024x1024.png b/screenpipe-app-tauri/src-tauri/icons/beta/1024x1024.pngnew file mode 100644index 000000000..feaebae5fBinary files /dev/null and b/screenpipe-app-tauri/src-tauri/icons/beta/1024x1024.png differdiff --git a/screenpipe-app-tauri/src-tauri/icons/beta/128x128.png b/screenpipe-app-tauri/src-tauri/icons/beta/128x128.pngnew file mode 100644index 000000000..e86161045Binary files /dev/null and b/screenpipe-app-tauri/src-tauri/icons/beta/128x128.png differdiff --git a/screenpipe-app-tauri/src-tauri/icons/beta/[email protected] b/screenpipe-app-tauri/src-tauri/icons/beta/[email protected]new file mode 100644index 000000000..639764b97Binary files /dev/null and b/screenpipe-app-tauri/src-tauri/icons/beta/[email protected] differdiff --git a/screenpipe-app-tauri/src-tauri/icons/beta/256x256.png b/screenpipe-app-tauri/src-tauri/icons/beta/256x256.pngnew file mode 100644index 000000000..639764b97Binary files /dev/null and b/screenpipe-app-tauri/src-tauri/icons/beta/256x256.png differdiff --git a/screenpipe-app-tauri/src-tauri/icons/beta/32x32.png b/screenpipe-app-tauri/src-tauri/icons/beta/32x32.pngnew file mode 100644index 000000000..e0eba06f4Binary files /dev/null and b/screenpipe-app-tauri/src-tauri/icons/beta/32x32.png differdiff --git a/screenpipe-app-tauri/src-tauri/icons/beta/512x512.png b/screenpipe-app-tauri/src-tauri/icons/beta/512x512.pngnew file mode 100644index 000000000..fceed9235Binary files /dev/null and b/screenpipe-app-tauri/src-tauri/icons/beta/512x512.png differdiff --git a/screenpipe-app-tauri/src-tauri/icons/beta/icon.icns b/screenpipe-app-tauri/src-tauri/icons/beta/icon.icnsnew file mode 100644index 000000000..56c364267Binary files /dev/null and b/screenpipe-app-tauri/src-tauri/icons/beta/icon.icns differdiff --git a/screenpipe-app-tauri/src-tauri/icons/beta/icon.ico b/screenpipe-app-tauri/src-tauri/icons/beta/icon.iconew file mode 100644index 000000000..1261f964dBinary files /dev/null and b/screenpipe-app-tauri/src-tauri/icons/beta/icon.ico differdiff --git a/screenpipe-app-tauri/src-tauri/tauri.beta.conf.json b/screenpipe-app-tauri/src-tauri/tauri.beta.conf.jsonnew file mode 100644index 000000000..ae2d5c5ce--- /dev/null+++ b/screenpipe-app-tauri/src-tauri/tauri.beta.conf.json@@ -0,0 +1,125 @@+{+ "$schema": "https://schema.tauri.app/config/2",+ "productName": "screenpipe beta",+ "identifier": "screenpi.pe.beta",+ "build": {+ "beforeDevCommand": "bun run dev",+ "beforeBuildCommand": "bun run build",+ "frontendDist": "../out",+ "devUrl": "http://localhost:3000"+ },+ "bundle": {+ "createUpdaterArtifacts": true,+ "active": true,+ "category": "DeveloperTool",+ "shortDescription": "24/7 memory for your desktop (Beta)",+ "longDescription": "24/7 memory for your desktop. 100% local. You own your data. Beta version for testing experimental features.",+ "copyright": "",+ "targets": [+ "app",+ "dmg",+ "deb",+ "appimage",+ "nsis"+ ],+ "externalBin": [],+ "icon": [+ "icons/beta/32x32.png",+ "icons/beta/128x128.png",+ "icons/beta/[email protected]",+ "icons/beta/256x256.png",+ "icons/beta/512x512.png",+ "icons/beta/1024x1024.png",+ "icons/beta/icon.icns",+ "icons/beta/icon.ico",+ "icons/screenpipe-logo-tray-failed.png",+ "icons/screenpipe-logo-tray-black.png"+ ],+ "resources": [+ "assets/*"+ ],+ "macOS": {+ "entitlements": "entitlements.plist"+ }+ },+ "plugins": {+ "updater": {+ "active": true,+ "dialog": true,+ "endpoints": [+ "https://cdn.crabnebula.app/update/mediar/screenpipe-beta/{{target}}-{{arch}}/{{current_version}}"+ ],+ "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDIyQjQ2RkQzMUNBOUFDMTcKUldRWHJLa2MwMiswSWl3RlBGUW5zYUE0Zm0vNFFRRTltNUZZTUVxR2FxUDNtSWdUSHgyL3JNcmcK"+ },+ "deep-link": {+ "desktop": {+ "schemes": [+ "screenpipe-beta"+ ]+ },+ "mobile": [+ {+ "host": "screenpi.pe",+ "pathPrefix": [+ "/auth"+ ]+ },+ {+ "host": "screenpi.pe",+ "pathPrefix": [+ "/stripe-connect"+ ]+ },+ {+ "host": "screenpi.pe",+ "pathPrefix": [+ "/purchase-successful"+ ]+ },+ {+ "host": "screenpi.pe",+ "pathPrefix": [+ "/settings"+ ]+ },+ {+ "host": "screenpi.pe",+ "pathPrefix": [+ "/changelog"+ ]+ },+ {+ "host": "screenpi.pe",+ "pathPrefix": [+ "/onboarding"+ ]+ },+ {+ "host": "screenpi.pe",+ "pathPrefix": [+ "/status"+ ]+ }+ ]+ }+ },+ "app": {+ "withGlobalTauri": true,+ "trayIcon": {+ "id": "screenpipe_main",+ "iconPath": "assets/screenpipe-logo-tray-white.png",+ "iconAsTemplate": true,+ "menuOnLeftClick": true+ },+ "security": {+ "assetProtocol": {+ "enable": true,+ "scope": [+ "$APPDATA/**"+ ]+ },+ "csp": null+ },+ "macOSPrivateApi": true+ }+}