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: changelog in tray menu + auto-generate on release
Louis Beaumontcf46ad31cd8f
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex f368fa56f..adcabc0ed 100644--- a/.github/workflows/release-app.yml+++ b/.github/workflows/release-app.yml@@ -695,3 +695,34 @@ jobs:});console.log(`Created testing discussion issue: ${issue.data.html_url}`);++ generate-changelog:+ needs: [check_commit, publish-tauri]+ if: needs.check_commit.outputs.should_release == 'true'+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4+ with:+ fetch-depth: 100++ - name: Get version and previous bump+ id: params+ run: |+ VERSION=$(grep '^version = ' apps/screenpipe-app-tauri/src-tauri/Cargo.toml | sed 's/version = "\(.*\)"/\1/')+ echo "version=v${VERSION}" >> $GITHUB_OUTPUT++ # Find the previous "Bump" or "release-app" commit to diff from+ PREV=$(git log --oneline --skip=1 --grep="release-app\|Bump app" -1 --format="%H" 2>/dev/null || echo "")+ if [ -z "$PREV" ]; then+ PREV="HEAD~50"+ fi+ echo "since=${PREV}" >> $GITHUB_OUTPUT+ echo "Changelog: v${VERSION} since ${PREV}"++ - name: Trigger changelog generation on website repo+ uses: peter-evans/repository-dispatch@v3+ with:+ token: ${{ secrets.WEBSITE_REPO_TOKEN }}+ repository: screenpipe/website+ event-type: generate-changelog+ client-payload: '{"version": "${{ steps.params.outputs.version }}", "since": "${{ steps.params.outputs.since }}"}'diff --git a/apps/screenpipe-app-tauri/src-tauri/src/tray.rs b/apps/screenpipe-app-tauri/src-tauri/src/tray.rsindex 637ae6269..937ff5f5e 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/tray.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/tray.rs@@ -13,7 +13,7 @@ use tauri::tray::{TrayIcon, TrayIconBuilder};use tauri::Emitter;use tauri::{menu::{MenuBuilder, MenuItem, MenuItemBuilder, PredefinedMenuItem},- AppHandle, Manager, WebviewUrl, WebviewWindowBuilder, Wry,+ AppHandle, Manager, Wry,};use tauri_plugin_dialog::{DialogExt, MessageDialogButtons};use tauri_plugin_opener::OpenerExt;@@ -225,7 +225,7 @@ fn create_dynamic_menu(.build(app)?,).item(update_item)- .item(&MenuItemBuilder::with_id("releases", "what's new").build(app)?);+ .item(&MenuItemBuilder::with_id("releases", "changelog").build(app)?);// Only show recording controls if not in dev modelet dev_mode = store@@ -275,24 +275,7 @@ fn handle_menu_event(app_handle: &AppHandle, event: tauri::menu::MenuEvent) {let _ = ShowRewindWindow::PermissionRecovery.show(app_handle);}"releases" => {- // Open GitHub releases in a webview window- if let Some(window) = app_handle.get_webview_window("releases") {- let _ = window.set_focus();- } else {- let _ = WebviewWindowBuilder::new(- app_handle,- "releases",- WebviewUrl::External(- "https://github.com/screenpipe/screenpipe/releases"- .parse()- .unwrap(),- ),- )- .title("what's new")- .inner_size(900.0, 700.0)- .min_inner_size(600.0, 400.0)- .build();- }+ let _ = app_handle.opener().open_url("https://screenpi.pe/changelog", None::<&str>);}"update_now" => {// For source builds, show info dialog about updates