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

refactor: change beta to download separate app instead of in-app update

Louis Beaumont6c8150e3cc38
diff --git a/screenpipe-app-tauri/components/settings/general-settings.tsx b/screenpipe-app-tauri/components/settings/general-settings.tsx
index fc159deb1..b91c02575 100644
--- a/screenpipe-app-tauri/components/settings/general-settings.tsx
+++ b/screenpipe-app-tauri/components/settings/general-settings.tsx
@@ -6,12 +6,11 @@ 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, FlaskConical, Shield } from "lucide-react";
-import { UpdateChannel } from "@/lib/hooks/use-settings";
-import { checkForAppUpdates } from "@/components/updater";
+import { Rocket, Moon, Sun, Monitor, FlaskConical, Shield, ExternalLink } from "lucide-react";
import { useToast } from "@/components/ui/use-toast";
import { Button } from "@/components/ui/button";
import { Settings } from "@/lib/hooks/use-settings";
+import { open } from "@tauri-apps/plugin-shell";
export default function GeneralSettings() {
const { settings, updateSettings } = useSettings();
@@ -45,39 +44,14 @@ 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
+ const handleDownloadBeta = async () => {
+ // Open the beta download page
+ await open("https://screenpi.pe/beta");
toast({
- title: `Switched to ${channel} channel`,
- description: "Checking for updates...",
- duration: 3000,
+ title: "Opening beta download",
+ description: "Download the beta app to run it alongside stable",
+ duration: 5000,
});
-
- const update = await checkForAppUpdates({ toast, channel });
- if (!update?.available) {
- toast({
- title: "You're up to date",
- description: `No ${channel} updates available`,
- duration: 3000,
- });
- }
};
return (
@@ -184,62 +158,29 @@ export default function GeneralSettings() {
<Card className="border-border bg-card shadow-sm">
<CardContent className="p-6">
- <div className="space-y-4">
+ <div className="flex items-center justify-between">
<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
+ Try Beta Version
</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.
+ Get early access to new features. The beta app runs separately alongside this stable version.
</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>
+ <Button
+ variant="outline"
+ onClick={handleDownloadBeta}
+ className="ml-4 flex items-center gap-2"
+ >
+ <FlaskConical className="h-4 w-4" />
+ Download Beta
+ <ExternalLink className="h-3 w-3" />
+ </Button>
</div>
</CardContent>
</Card>
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lock
index b8bd45f58..2f2c009cd 100755
--- a/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -5629,7 +5629,7 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
[[package]]
name = "screenpipe-app"
-version = "2.0.103"
+version = "2.0.104"
dependencies = [
"anyhow",
"async-stream",