Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Merge worker support

Bittid8f3f5190f99
diff --cc package.cmd
index 26cc23d,32ca233..2876d0a
--- a/package.cmd
+++ b/package.cmd
@@@ -106,10 -113,13 +113,12 @@@ echo Folder: %OUTPUT_STEM%-po
echo.
echo [5/5] Creating the portable archive...
-rem Archive without the marker so distributed copies can check for updates.
-powershell.exe -NoProfile -NonInteractive -Command "$ErrorActionPreference='Stop'; Compress-Archive -Path (Join-Path $env:OUTPUT_DIR '*') -DestinationPath $env:OUTPUT_ZIP -CompressionLevel Optimal -Force" || goto :fail
-rem Disable updates only in the unpacked folder used for local testing.
-> "%OUTPUT_DIR%\slopus-portable" echo Local test build - automatic updates disabled.
+rem Include the marker so portable copies offer manual updates from GitHub.
+> "%OUTPUT_DIR%\slopus-portable" echo Portable build - download updates from https://github.com/bitti-ai/slopus/releases
if errorlevel 1 goto :fail
+powershell.exe -NoProfile -NonInteractive -Command "$ErrorActionPreference='Stop'; Compress-Archive -Path (Join-Path $env:OUTPUT_DIR '*') -DestinationPath $env:OUTPUT_ZIP -CompressionLevel Optimal -Force" || goto :fail
+ call :package_worker || goto :fail
+ call :package_linux_worker || goto :fail
echo.
echo Package complete.
diff --cc release.cmd
index 359e6ca,777e2d0..914f7b7
--- a/release.cmd
+++ b/release.cmd
@@@ -159,10 -166,13 +166,12 @@@ echo Folder: %OUTPUT_STEM%-po
echo.
echo [6/6] Creating the portable archive...
-rem Archive without the marker so distributed copies can check for updates.
-powershell.exe -NoProfile -NonInteractive -Command "$ErrorActionPreference='Stop'; Compress-Archive -Path (Join-Path $env:OUTPUT_DIR '*') -DestinationPath $env:OUTPUT_ZIP -CompressionLevel Optimal -Force" || goto :fail
-rem Disable updates only in the unpacked folder used for local testing.
-> "%OUTPUT_DIR%\slopus-portable" echo Local test build - automatic updates disabled.
+rem Include the marker so portable copies offer manual updates from GitHub.
+> "%OUTPUT_DIR%\slopus-portable" echo Portable build - download updates from https://github.com/bitti-ai/slopus/releases
if errorlevel 1 goto :fail
+powershell.exe -NoProfile -NonInteractive -Command "$ErrorActionPreference='Stop'; Compress-Archive -Path (Join-Path $env:OUTPUT_DIR '*') -DestinationPath $env:OUTPUT_ZIP -CompressionLevel Optimal -Force" || goto :fail
+ call :package_worker || goto :fail
+ call :package_linux_worker || goto :fail
echo.
echo Package complete.
diff --cc src-tauri/src/app.rs
index 2e625d4,a6b901d..a12ad59
--- a/src-tauri/src/app.rs
+++ b/src-tauri/src/app.rs
@@@ -1,21 -1,21 +1,21 @@@
use crate::window::{CloseDecision, ExitGuard};
use crate::{
agent, app_paths, app_settings, commands, cuda_support, diagnostics, export, native_shell,
- slopfab, weights, window,
+ slopfab, weights, window, worker,
};
use std::io;
-/// Portable distributions carry a marker because Windows updates launch an
-/// installer and cannot replace a portable folder in place.
+/// Portable copies check for updates but open the release page for manual updates.
#[tauri::command]
-fn app_updater_enabled() -> bool {
- !cfg!(debug_assertions)
- && std::env::current_exe()
- .ok()
- .and_then(|exe| {
- exe.parent()
- .map(|dir| !dir.join("slopus-portable").exists())
- })
- .unwrap_or(false)
+fn app_updater_mode() -> Result<&'static str, String> {
+ if cfg!(debug_assertions) { return Ok("disabled"); }
+ let exe = std::env::current_exe().map_err(|error| error.to_string())?;
+ let directory = exe.parent().ok_or("Could not locate the application folder.")?;
+ Ok(if directory.join("slopus-portable").exists() { "portable" } else { "installed" })
+}
+
+#[tauri::command]
+fn open_app_releases() -> Result<(), String> {
+ crate::external_links::open_browser("https://github.com/bitti-ai/slopus/releases")
}
#[cfg_attr(mobile, tauri::mobile_entry_point)]