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: hide recorder log on windows, build

Louis Beaumont352d98aadc84
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index ff1a353a2..ad8869463 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -286,28 +286,32 @@ jobs:
env:
SKIP_SCREENPIPE_SETUP: true
run: |
- # Try chocolatey first
- if (Get-Command choco -ErrorAction SilentlyContinue) {
- choco install wget -y
- } else {
- # Direct download if chocolatey not available
- $wgetUrl = "https://eternallybored.org/misc/wget/releases/wget-1.21.4-win64.zip"
- $wgetZip = "wget.zip"
- $wgetDir = "$env:USERPROFILE\wget"
-
- # Create wget directory
- New-Item -ItemType Directory -Force -Path $wgetDir
-
- # Download and extract wget
- Invoke-WebRequest -Uri $wgetUrl -OutFile $wgetZip
- Expand-Archive -Path $wgetZip -DestinationPath $wgetDir -Force
- Remove-Item $wgetZip
-
- # Add to PATH for this session
- $env:Path = "$wgetDir;$env:Path"
+ # Remove wget alias if it exists
+ if (Test-Path Alias:wget) {
+ Remove-Item Alias:wget -Force
}
- # Verify wget is available
- wget --version
+
+ # Create wget directory
+ $wgetDir = "C:\wget"
+ New-Item -ItemType Directory -Force -Path $wgetDir
+
+ # Download wget executable
+ $wgetUrl = "https://eternallybored.org/misc/wget/releases/wget-1.21.4-win64.zip"
+ $wgetZip = "$wgetDir\wget.zip"
+
+ # Use Invoke-WebRequest to download
+ Invoke-WebRequest -Uri $wgetUrl -OutFile $wgetZip
+
+ # Extract wget
+ Expand-Archive -Path $wgetZip -DestinationPath $wgetDir -Force
+ Remove-Item $wgetZip
+
+ # Add to PATH
+ $env:Path = "$wgetDir;$env:Path"
+ [Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::Machine)
+
+ # Verify installation
+ & "$wgetDir\wget.exe" --version
- name: Run pre_build.js
env:
diff --git a/screenpipe-app-tauri/components/screenpipe-status.tsx b/screenpipe-app-tauri/components/screenpipe-status.tsx
index 06a9d2486..fe4c3559f 100644
--- a/screenpipe-app-tauri/components/screenpipe-status.tsx
+++ b/screenpipe-app-tauri/components/screenpipe-status.tsx
@@ -100,9 +100,9 @@ const HealthStatus = ({ className }: { className?: string }) => {
const checkPermissions = async () => {
try {
const perms = await invoke<PermissionsStatus>("do_permissions_check", {
- initialCheck: true
+ initialCheck: true,
});
-
+
setPermissions({
screenRecording: perms.screenRecording,
microphone: perms.microphone,
@@ -451,7 +451,9 @@ const HealthStatus = ({ className }: { className?: string }) => {
}
};
- const handlePermissionButton = async (type: "screen" | "audio" | "accessibility") => {
+ const handlePermissionButton = async (
+ type: "screen" | "audio" | "accessibility"
+ ) => {
const toastId = toast({
title: `checking ${type} permissions`,
description: "please wait...",
@@ -459,31 +461,33 @@ const HealthStatus = ({ className }: { className?: string }) => {
});
try {
- const permissionType = type === "screen"
- ? "screenRecording"
- : type === "audio"
- ? "microphone"
- : "accessibility";
+ const permissionType =
+ type === "screen"
+ ? "screenRecording"
+ : type === "audio"
+ ? "microphone"
+ : "accessibility";
await invoke("request_permission", {
- permission: permissionType
+ permission: permissionType,
});
const perms = await invoke<PermissionsStatus>("do_permissions_check", {
- initialCheck: false
+ initialCheck: false,
});
setPermissions({
screenRecording: perms.screenRecording,
microphone: perms.microphone,
- accessibility: perms.accessibility
+ accessibility: perms.accessibility,
});
- const granted = type === "screen"
- ? perms.screenRecording === "Granted"
- : type === "audio"
- ? perms.microphone === "Granted"
- : perms.accessibility === "Granted";
+ const granted =
+ type === "screen"
+ ? perms.screenRecording === "Granted"
+ : type === "audio"
+ ? perms.microphone === "Granted"
+ : perms.accessibility === "Granted";
toastId.update({
id: toastId.id,
@@ -680,22 +684,24 @@ const HealthStatus = ({ className }: { className?: string }) => {
<Separator className="my-12" />
<DevModeSettings localDataDir={localDataDir} />
- <Collapsible
- open={isLogOpen}
- onOpenChange={setIsLogOpen}
- className="w-full mt-4"
- >
- <div className="flex items-center justify-between w-full">
- <CollapsibleTrigger className="flex items-center justify-between p-2 flex-grow border-b border-gray-200">
- recorder logs
- <span>{isLogOpen ? "▲" : "▼"}</span>
- </CollapsibleTrigger>
- <LogFileButton />
- </div>
- <CollapsibleContent>
- <LogViewer className="mt-2" />
- </CollapsibleContent>
- </Collapsible>
+ {!isMac ? null : (
+ <Collapsible
+ open={isLogOpen}
+ onOpenChange={setIsLogOpen}
+ className="w-full mt-4"
+ >
+ <div className="flex items-center justify-between w-full">
+ <CollapsibleTrigger className="flex items-center justify-between p-2 flex-grow border-b border-gray-200">
+ recorder logs
+ <span>{isLogOpen ? "▲" : "▼"}</span>
+ </CollapsibleTrigger>
+ <LogFileButton />
+ </div>
+ <CollapsibleContent>
+ <LogViewer className="mt-2" />
+ </CollapsibleContent>
+ </Collapsible>
+ )}
</div>
</DialogContent>
</Dialog>
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lock
index c63e714db..cd5355983 100755
--- a/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -4713,7 +4713,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "0.14.30"
+version = "0.14.33"
dependencies = [
"anyhow",
"axum",