Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: resolve linux cli follow-ups

Richie McIlroya81e02ac3ee3
diff --git a/apps/cli/src/record.rs b/apps/cli/src/record.rs
index da3a28a73..2ae52a02a 100644
--- a/apps/cli/src/record.rs
+++ b/apps/cli/src/record.rs
@@ -637,6 +637,7 @@ impl ActorHandle {
Self::Studio(actor) => actor
.stop()
.await
+ .map(Box::new)
.map(CompletedRecording::Studio)
.map_err(|e| e.to_string()),
Self::Instant(actor) => actor
@@ -649,7 +650,7 @@ impl ActorHandle {
}
enum CompletedRecording {
- Studio(studio_recording::CompletedRecording),
+ Studio(Box<studio_recording::CompletedRecording>),
Instant(instant_recording::CompletedRecording),
}
diff --git a/apps/web/app/install-cli.sh/route.ts b/apps/web/app/install-cli.sh/route.ts
index 6225be5e0..8082677ee 100644
--- a/apps/web/app/install-cli.sh/route.ts
+++ b/apps/web/app/install-cli.sh/route.ts
@@ -313,7 +313,7 @@ install_cap_desktop_linux_deb() {
trap cleanup_desktop_install EXIT HUP INT TERM
echo "Downloading Cap Desktop Debian package..."
- curl -fL "https://cap.so/download/linux-deb" -o "$DEB_PATH"
+ curl --proto '=https' --tlsv1.2 --retry 3 --retry-delay 1 -fL "https://cap.so/download/linux-deb" -o "$DEB_PATH"
if command -v apt-get >/dev/null 2>&1; then
run_as_root apt-get install -y "$DEB_PATH"
@@ -341,7 +341,7 @@ install_cap_desktop_linux_rpm() {
trap cleanup_desktop_install EXIT HUP INT TERM
echo "Downloading Cap Desktop RPM package..."
- curl -fL "https://cap.so/download/linux-rpm" -o "$RPM_PATH"
+ curl --proto '=https' --tlsv1.2 --retry 3 --retry-delay 1 -fL "https://cap.so/download/linux-rpm" -o "$RPM_PATH"
if command -v dnf >/dev/null 2>&1; then
run_as_root dnf install -y "$RPM_PATH"
diff --git a/crates/cli-install/src/lib.rs b/crates/cli-install/src/lib.rs
index 3ab7e0002..3b86484c1 100644
--- a/crates/cli-install/src/lib.rs
+++ b/crates/cli-install/src/lib.rs
@@ -6,10 +6,10 @@
//! current executable, which is the bundled CLI for both callers.
use serde::Serialize;
+#[cfg(unix)]
+use std::ffi::OsStr;
use std::{
- env,
- ffi::OsStr,
- fs,
+ env, fs,
path::{Path, PathBuf},
};
@@ -177,6 +177,7 @@ fn current_target_triple() -> Option<&'static str> {
}
}
+#[cfg(unix)]
fn cli_binary_file_name_is_cap_managed(name: &OsStr) -> bool {
if name == CLI_BINARY_NAME {
return true;
diff --git a/crates/recording/src/cursor.rs b/crates/recording/src/cursor.rs
index 460c8ca90..48f3ef059 100644
--- a/crates/recording/src/cursor.rs
+++ b/crates/recording/src/cursor.rs
@@ -227,6 +227,7 @@ pub fn spawn_cursor_recorder(
});
return CursorActor {
stop: None,
+ stop_wakeup: None,
thread: None,
rx: rx.shared(),
};