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: update cal.com link in contributing docs

Louis Beaumont27db88de1494
diff --git a/apps/screenpipe-app-tauri/components/update-banner.tsx b/apps/screenpipe-app-tauri/components/update-banner.tsx
index 996d74ab6..3ca698aa0 100644
--- a/apps/screenpipe-app-tauri/components/update-banner.tsx
+++ b/apps/screenpipe-app-tauri/components/update-banner.tsx
@@ -24,6 +24,11 @@ interface DownloadProgress {
percent: number;
}
+interface AuthRequiredInfo {
+ version: string;
+ message: string;
+}
+
interface UpdateBannerState {
isVisible: boolean;
updateInfo: UpdateInfo | null;
@@ -31,12 +36,14 @@ interface UpdateBannerState {
isDownloading: boolean;
downloadProgress: DownloadProgress | null;
pendingUpdate: Update | null;
+ authRequired: AuthRequiredInfo | null;
setIsVisible: (visible: boolean) => void;
setUpdateInfo: (info: UpdateInfo | null) => void;
setIsInstalling: (installing: boolean) => void;
setIsDownloading: (downloading: boolean) => void;
setDownloadProgress: (progress: DownloadProgress | null) => void;
setPendingUpdate: (update: Update | null) => void;
+ setAuthRequired: (info: AuthRequiredInfo | null) => void;
}
export const useUpdateBanner = create<UpdateBannerState>((set) => ({
@@ -46,12 +53,14 @@ export const useUpdateBanner = create<UpdateBannerState>((set) => ({
isDownloading: false,
downloadProgress: null,
pendingUpdate: null,
+ authRequired: null,
setIsVisible: (visible) => set({ isVisible: visible }),
setUpdateInfo: (info) => set({ updateInfo: info }),
setIsInstalling: (installing) => set({ isInstalling: installing }),
setIsDownloading: (downloading) => set({ isDownloading: downloading }),
setDownloadProgress: (progress) => set({ downloadProgress: progress }),
setPendingUpdate: (update) => set({ pendingUpdate: update }),
+ setAuthRequired: (info) => set({ authRequired: info }),
}));
interface UpdateBannerProps {
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/updates.rs b/apps/screenpipe-app-tauri/src-tauri/src/updates.rs
index 7f778b295..c1e119238 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/updates.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/updates.rs
@@ -434,7 +434,14 @@ impl UpdatesManager {
current_version,
self.app.config().identifier
);
- let check_result = self.app.updater()?.check().await;
+ // Build updater with auth header so paid users can download from R2
+ let mut builder = self.app.updater_builder();
+ if let Ok(Some(settings)) = SettingsStore::get(&self.app) {
+ if let Some(ref token) = settings.user.token {
+ builder = builder.header("Authorization", format!("Bearer {}", token))?;
+ }
+ }
+ let check_result = builder.build()?.check().await;
match &check_result {
Ok(Some(ref u)) => {
info!("update found: v{}", u.version);
@@ -503,7 +510,7 @@ impl UpdatesManager {
let menu_item = self.update_menu_item.clone();
let mut downloaded: u64 = 0;
let mut last_pct: u8 = 0;
- update.download_and_install(
+ let download_result = update.download_and_install(
move |chunk_len, content_len| {
downloaded += chunk_len as u64;
let pct = content_len
@@ -526,10 +533,39 @@ impl UpdatesManager {
);
},
|| {},
- ).await?;
- *self.update_installed.lock().await = true;
- self.update_menu_item.set_enabled(true)?;
- self.update_menu_item.set_text("restart to update")?;
+ ).await;
+
+ match download_result {
+ Ok(_) => {
+ *self.update_installed.lock().await = true;
+ self.update_menu_item.set_enabled(true)?;
+ self.update_menu_item.set_text("restart to update")?;
+ }
+ Err(e) => {
+ let err_str = e.to_string();
+ if err_str.contains("401") || err_str.contains("403")
+ || err_str.contains("Unauthorized") || err_str.contains("Forbidden") {
+ warn!("update download requires authentication: {}", err_str);
+ let _ = self.app.emit("update-auth-required", serde_json::json!({
+ "version": update.version,
+ "message": "sign in to get the latest update",
+ }));
+ let app_notif = self.app.clone();
+ let version_str = update.version.clone();
+ let _ = tokio::task::spawn_blocking(move || {
+ let _ = app_notif.notification()
+ .builder()
+ .title("screenpipe update available")
+ .body(format!("v{} is ready — sign in to download", version_str))
+ .show();
+ }).await;
+ self.update_menu_item.set_enabled(true)?;
+ self.update_menu_item.set_text("sign in to update")?;
+ return Ok(false);
+ }
+ return Err(e.into());
+ }
+ }
}
// Emit event to frontend for in-app banner (visible if window is open)
diff --git a/apps/screenpipe-app-tauri/src-tauri/tauri.beta.conf.json b/apps/screenpipe-app-tauri/src-tauri/tauri.beta.conf.json
index 710aeae79..d90987cfc 100644
--- a/apps/screenpipe-app-tauri/src-tauri/tauri.beta.conf.json
+++ b/apps/screenpipe-app-tauri/src-tauri/tauri.beta.conf.json
@@ -47,8 +47,7 @@
"active": true,
"dialog": false,
"endpoints": [
- "https://screenpi.pe/api/app-update/beta/{{target}}-{{arch}}/{{current_version}}",
- "https://cdn.crabnebula.app/update/mediar/screenpipe-beta/{{target}}-{{arch}}/{{current_version}}"
+ "https://screenpi.pe/api/app-update/beta/{{target}}-{{arch}}/{{current_version}}"
],
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDIyQjQ2RkQzMUNBOUFDMTcKUldRWHJLa2MwMiswSWl3RlBGUW5zYUE0Zm0vNFFRRTltNUZZTUVxR2FxUDNtSWdUSHgyL3JNcmcK"
},
diff --git a/apps/screenpipe-app-tauri/src-tauri/tauri.prod.conf.json b/apps/screenpipe-app-tauri/src-tauri/tauri.prod.conf.json
index 5241df210..6c0b4d3b6 100644
--- a/apps/screenpipe-app-tauri/src-tauri/tauri.prod.conf.json
+++ b/apps/screenpipe-app-tauri/src-tauri/tauri.prod.conf.json
@@ -47,8 +47,7 @@
"active": true,
"dialog": false,
"endpoints": [
- "https://screenpi.pe/api/app-update/stable/{{target}}-{{arch}}/{{current_version}}",
- "https://cdn.crabnebula.app/update/mediar/screenpipe/{{target}}-{{arch}}/{{current_version}}"
+ "https://screenpi.pe/api/app-update/stable/{{target}}-{{arch}}/{{current_version}}"
],
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDIyQjQ2RkQzMUNBOUFDMTcKUldRWHJLa2MwMiswSWl3RlBGUW5zYUE0Zm0vNFFRRTltNUZZTUVxR2FxUDNtSWdUSHgyL3JNcmcK"
},
diff --git a/content/docs-mintlify-mig-tmp/contributing.mdx b/content/docs-mintlify-mig-tmp/contributing.mdx
index d4fd399e2..18e8f843d 100644
--- a/content/docs-mintlify-mig-tmp/contributing.mdx
+++ b/content/docs-mintlify-mig-tmp/contributing.mdx
@@ -12,4 +12,4 @@ for detailed contribution guidelines, build instructions, and development setup,
- [report a bug](https://github.com/screenpipe/screenpipe/issues/new?labels=bug)
- [request a feature](https://github.com/screenpipe/screenpipe/issues/new?labels=enhancement)
- [join our discord](https://discord.gg/du9ebuw7uq)
-- [schedule a call](https://cal.com/louis030195/screenpipe)
+- [schedule a call](https://cal.com/team/screenpipe/chat)
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/contributing.mdx b/docs/mintlify/docs-mintlify-mig-tmp/contributing.mdx
index d4fd399e2..18e8f843d 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/contributing.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/contributing.mdx
@@ -12,4 +12,4 @@ for detailed contribution guidelines, build instructions, and development setup,
- [report a bug](https://github.com/screenpipe/screenpipe/issues/new?labels=bug)
- [request a feature](https://github.com/screenpipe/screenpipe/issues/new?labels=enhancement)
- [join our discord](https://discord.gg/du9ebuw7uq)
-- [schedule a call](https://cal.com/louis030195/screenpipe)
+- [schedule a call](https://cal.com/team/screenpipe/chat)