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

release-app-publish fix port check

Louis Beaumont5cf86a5be664
diff --git a/Cargo.toml b/Cargo.toml
index cb605be79..618ce5fae 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,7 +14,7 @@ resolver = "2"
[workspace.package]
-version = "0.2.20"
+version = "0.2.21"
authors = ["louis030195 <[email protected]>"]
description = ""
repository = "https://github.com/mediar-ai/screenpipe"
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index 697f9f4d8..c415d9672 100644
--- a/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "0.21.0"
+version = "0.21.1"
description = ""
authors = ["you"]
license = ""
diff --git a/screenpipe-server/src/bin/screenpipe-server.rs b/screenpipe-server/src/bin/screenpipe-server.rs
index 82163edb9..46ba87627 100644
--- a/screenpipe-server/src/bin/screenpipe-server.rs
+++ b/screenpipe-server/src/bin/screenpipe-server.rs
@@ -134,13 +134,6 @@ async fn main() -> anyhow::Result<()> {
debug!("starting screenpipe server");
let cli = Cli::parse();
- if !is_local_ipv4_port_free(cli.port) {
- error!(
- "you're likely already running screenpipe instance in a different environment, e.g. terminal/ide, close it and restart or use different port"
- );
- return Err(anyhow::anyhow!("port already in use"));
- }
-
let local_data_dir = get_base_dir(&cli.data_dir)?;
let local_data_dir_clone = local_data_dir.clone();
@@ -287,6 +280,13 @@ async fn main() -> anyhow::Result<()> {
std::process::exit(1);
}
+ if !is_local_ipv4_port_free(cli.port) {
+ error!(
+ "you're likely already running screenpipe instance in a different environment, e.g. terminal/ide, close it and restart or use different port"
+ );
+ return Err(anyhow::anyhow!("port already in use"));
+ }
+
let all_audio_devices = list_audio_devices().await?;
let mut devices_status = HashMap::new();
if cli.list_audio_devices {