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): replace em-dashes in release-app.yml — PowerShell parse error on Windows
Louis Beaumont63a7cb78d8c4
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex 7571b0a9b..7ab396ea3 100644--- a/.github/workflows/release-app.yml+++ b/.github/workflows/release-app.yml@@ -129,7 +129,7 @@ jobs:echo "macos_arm_runner=macos-26" >> $GITHUB_OUTPUTecho "✅ Using GitHub-hosted macos-26 runner"- # Always use GH-hosted Windows — self-hosted is unreliable for builds+ # Always use GH-hosted Windows - self-hosted is unreliable for buildsecho "windows_runner=windows-2022" >> $GITHUB_OUTPUTecho "ℹ️ Using GH-hosted Windows runner (windows-2022)"fi@@ -153,7 +153,7 @@ jobs:fi- name: draft placeholder- run: echo "R2-based releases — no CN draft needed"+ run: echo "R2-based releases - no CN draft needed"publish-tauri:needs: [check_commit, draft]@@ -210,13 +210,13 @@ jobs:SDK_SETTINGS="${SDK_PATH}/SDKSettings.json"if [ -f "$SDK_SETTINGS" ] && grep -q '"26\.' "$SDK_SETTINGS"; thenecho "has_apple_intelligence=true" >> $GITHUB_OUTPUT- echo "🧠 macOS 26+ SDK detected — Apple Intelligence enabled"+ echo "🧠 macOS 26+ SDK detected - Apple Intelligence enabled"elif [ -d "${SDK_PATH}/System/Library/Frameworks/FoundationModels.framework" ]; thenecho "has_apple_intelligence=true" >> $GITHUB_OUTPUT- echo "🧠 FoundationModels.framework found — Apple Intelligence enabled"+ echo "🧠 FoundationModels.framework found - Apple Intelligence enabled"elseecho "has_apple_intelligence=false" >> $GITHUB_OUTPUT- echo "ℹ️ macOS SDK < 26 — Apple Intelligence not available (stub will be used)"+ echo "ℹ️ macOS SDK < 26 - Apple Intelligence not available (stub will be used)"fi- name: Enable Git long paths on Windows@@ -362,7 +362,7 @@ jobs:${{ runner.os }}-brew-# Cache binary dependencies (ffmpeg, tesseract, ollama, vcredist, WixTools)- # These rarely change — keyed on workflow file hash, not lockfiles+ # These rarely change - keyed on workflow file hash, not lockfiles- name: Cache Binary Dependenciesuses: actions/cache@v4with:@@ -379,7 +379,7 @@ jobs:restore-keys: |${{ matrix.platform }}-${{ matrix.target }}-bins-- # Cache node_modules and tauri CLI — changes with bun.lockb+ # Cache node_modules and tauri CLI - changes with bun.lockb- name: Cache Node Modulesid: cache-pre-builduses: actions/cache@v4@@ -469,7 +469,7 @@ jobs:shell: powershellrun: |# The windows-11-arm runner image pre-installs Ninja at C:\Tools\Ninja- # but winget is NOT on PATH by default — so blindly calling+ # but winget is NOT on PATH by default - so blindly calling# `winget install` fails with CommandNotFoundException and kills# the build even though Ninja is already available. Check first,# fall back to winget only if both the pre-installed path AND the@@ -483,7 +483,7 @@ jobs:winget install Ninja-build.Ninja --accept-package-agreements --accept-source-agreements --silent$found = $paths | Where-Object { Test-Path "$_\ninja.exe" } | Select-Object -First 1} else {- Write-Host "winget unavailable on this runner — downloading Ninja release zip"+ Write-Host "winget unavailable on this runner - downloading Ninja release zip"$zip = "$env:RUNNER_TEMP\ninja.zip"Invoke-WebRequest -Uri "https://github.com/ninja-build/ninja/releases/latest/download/ninja-winarm64.zip" -OutFile $zip$dest = "C:\Tools\Ninja"@@ -593,7 +593,7 @@ jobs:-T /usr/bin/productbuild \-k "$BUILD_KC"- # Set partition list — we own this keychain so this always works+ # Set partition list - we own this keychain so this always workssecurity set-key-partition-list \-S apple-tool:,apple:,codesign: \-s -k "$BUILD_KC_PASS" \@@ -639,7 +639,7 @@ jobs:# SystemRootCertificates.keychain may not be accessible to codesign.# IMPORTANT: Use timeout because `security add-trusted-cert` hangs# indefinitely on GH-hosted runners (no SecurityAgent/GUI session).- # On GH-hosted runners this will timeout and that's fine — they have+ # On GH-hosted runners this will timeout and that's fine - they have# Apple Root CA in SystemRootCertificates.keychain already.echo "=== Setting trust policies ==="perl -e 'alarm 10; exec @ARGV' security add-trusted-cert -r trustRoot -p codeSign -k "$BUILD_KC" \@@ -672,7 +672,7 @@ jobs:run: |ARGS="${{ matrix.tauri-args }}"if [[ "${{ steps.detect-xcode.outputs.has_apple_intelligence }}" == "true" && "${{ matrix.target }}" == "aarch64-apple-darwin" ]]; then- # Apple Intelligence only works on aarch64 — the crate exports nothing on x86_64+ # Apple Intelligence only works on aarch64 - the crate exports nothing on x86_64ARGS=$(echo "$ARGS" | sed 's/--features \([^ ]*\)/--features \1,apple-intelligence/')echo "🧠 Tauri build will include Apple Intelligence"fi@@ -730,7 +730,7 @@ jobs:# Tell linuxdeploy to deploy GTK3 plugin dependencies (bundles libsecret etc.)export DEPLOY_GTK_VERSION=3- # Clean stale bundle artifacts from cache — prevents old .deb/.AppImage+ # Clean stale bundle artifacts from cache - prevents old .deb/.AppImage# files from accumulating and being uploaded alongside the current versionBUNDLE_DIR="src-tauri/target/${{ matrix.target }}/release/bundle"echo "Cleaning stale bundle artifacts from ${BUNDLE_DIR}..."@@ -785,7 +785,7 @@ jobs:TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}CI: true- # SSL.com EV code signing via CodeSignTool — same cert as enterprise build+ # SSL.com EV code signing via CodeSignTool - same cert as enterprise buildESIGNER_USERNAME: ${{ secrets.ESIGNER_USERNAME }}ESIGNER_PASSWORD: ${{ secrets.ESIGNER_PASSWORD }}ESIGNER_TOTP_SECRET: ${{ secrets.ESIGNER_TOTP_SECRET }}@@ -825,7 +825,7 @@ jobs:- name: Sign NSIS installer with SSL.com EV (Windows)# Tauri's signCommand handles inner binaries, but the final NSIS- # installer is built AFTER signCommand runs — so we sign it here+ # installer is built AFTER signCommand runs - so we sign it here# and re-generate the .sig (Tauri Updater signature) since the# installer file content changes after Authenticode signing.if: matrix.os_type == 'windows'@@ -878,11 +878,11 @@ jobs:Set-Content -Path $keyFile -Value $env:TAURI_SIGNING_PRIVATE_KEY -NoNewlinePush-Location apps/screenpipe-app-tauri# Tauri v2 CLI: --private-key auto-detects path-vs-contents.- # The legacy --private-key-path flag was removed in 2.x — using+ # The legacy --private-key-path flag was removed in 2.x - using# it produces "For more information, try '--help'." (clap error)# and fails the .sig regen, breaking the auto-updater.bunx tauri signer sign $exe.FullName --private-key $keyFile --password $env:TAURI_SIGNING_PRIVATE_KEY_PASSWORD- if ($LASTEXITCODE -ne 0) { throw "tauri signer sign failed (exit $LASTEXITCODE) — auto-updater would be broken" }+ if ($LASTEXITCODE -ne 0) { throw "tauri signer sign failed (exit $LASTEXITCODE) - auto-updater would be broken" }Pop-LocationWrite-Host "Tauri updater signature regenerated"}@@ -896,7 +896,7 @@ jobs:TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}# for releaseGITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- # for macos signing — cert is pre-imported into build keychain above,+ # for macos signing - cert is pre-imported into build keychain above,# so we do NOT pass APPLE_CERTIFICATE (which would create a temp keychain# that conflicts with our build keychain setup)APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}@@ -941,12 +941,12 @@ jobs:TARGET="${{ matrix.target }}"BUNDLE_DIR="apps/screenpipe-app-tauri/src-tauri/target/${TARGET}/release/bundle"- # Clean stale bundle artifacts from cache — prevents old .deb/.AppImage+ # Clean stale bundle artifacts from cache - prevents old .deb/.AppImage# files from accumulating and being uploaded alongside the current versionecho "Cleaning stale bundle artifacts..."rm -rf "${BUNDLE_DIR}" 2>/dev/null || true- # Clean cached mlx-sys build — deployment target is baked into CMake cache+ # Clean cached mlx-sys build - deployment target is baked into CMake cache# and won't update if only the env var changesecho "Cleaning mlx-sys build cache..."find "apps/screenpipe-app-tauri/src-tauri/target/${TARGET}/release/build" -maxdepth 1 -name "mlx-sys-*" -exec rm -rf {} + 2>/dev/null || true@@ -972,7 +972,7 @@ jobs:for attempt in $(seq 1 $MAX_ATTEMPTS); doecho "=== Build attempt $attempt/$MAX_ATTEMPTS ==="- # Re-unlock keychain before each attempt (macOS) — prevents transient codesign failures+ # Re-unlock keychain before each attempt (macOS) - prevents transient codesign failuresif [[ "${{ matrix.os_type }}" == "macos" ]]; thenBUILD_KC="$HOME/Library/Keychains/build.keychain-db"if [ -f "$BUILD_KC" ]; then@@ -1003,7 +1003,7 @@ jobs:# Check if it's a transient signing/bundling failure (worth retrying)if grep -qiE "failed to sign|codesign.*failed|errSecInternalComponent|failed to bundle|CSSMERR|SecKeychainOpen" /tmp/tauri-build-$attempt.log; thenecho "⚠️ Transient codesign/bundle failure detected, retrying..."- # Clean only bundle output — cargo cache is still warm+ # Clean only bundle output - cargo cache is still warmfind "$BUNDLE_DIR" -type f -delete 2>/dev/null || truesleep $((attempt * 30))else@@ -1065,7 +1065,7 @@ jobs:# Gatekeeper context:# The DMG is notarized + stapled above, so fresh installs are fine.- # Tauri auto-updates ship the .app inside .app.tar.gz — and until now+ # Tauri auto-updates ship the .app inside .app.tar.gz - and until now# that .app was never stapled. Gatekeeper then fell back to an online# notarization check on first launch, which intermittently fails and# produces the "app is damaged" dialog after every update.@@ -1106,7 +1106,7 @@ jobs:echo "Rebuilding ${APP_NAME}.tar.gz with stapled bundle"( cd "${MACOS_DIR}" && tar czf "${APP_NAME}.tar.gz" "${APP_NAME}" )- # Re-sign the tarball — old .sig is for the pre-staple bytes.+ # Re-sign the tarball - old .sig is for the pre-staple bytes.rm -f "${TARBALL}.sig"echo "Re-signing ${APP_NAME}.tar.gz with Tauri updater key"( cd "${GITHUB_WORKSPACE}/apps/screenpipe-app-tauri" && bunx tauri signer sign "${TARBALL}" )@@ -1229,7 +1229,7 @@ jobs:doneif [ "$UPLOAD_FAILED" -eq 1 ]; then- echo "❌ Some uploads failed — marking step as failed"+ echo "❌ Some uploads failed - marking step as failed"exit 1fiecho "R2 upload complete for ${TARGET}"