Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
better prepare.js logging
Ilyac7ff615d4b5c
diff --git a/apps/desktop/scripts/prepare.js b/apps/desktop/scripts/prepare.jsindex 0525d729f..55aaae086 100644--- a/apps/desktop/scripts/prepare.js+++ b/apps/desktop/scripts/prepare.js@@ -5,7 +5,6 @@ import * as path from "node:path";import { fileURLToPath } from "node:url";import { exec as execCb, execSync } from "node:child_process";import { promisify } from "node:util";-import { platform } from "node:os";const exec = promisify(execCb);@@ -67,8 +66,8 @@ async function prepareFfmpegSidecar() {// Skip downloading if the archive already existsif (!(await exists(ffmpegDownloadPath))) {if (await exists(ffmpegUnzippedPath)) return;- console.log("Downloading ffmpeg archive...");- console.log(`ffmpeg from: ${binaries.url}`);+ console.log(`Couldn't locate "ffmpeg-download.zip" in "${ffmpegDownloadPath}"`);+ console.log(`Downloading from: ${binaries.url}`);await fs.mkdir(binariesDir, { recursive: true });const response = await fetch(binaries.url);@@ -243,6 +242,8 @@ async function main() {}main().catch((err) => {- console.error("Error during sidecar preparation:", err);+ console.error("--- Preparation Failed");+ console.error(err);+ console.error("---");process.exit(1);});\ No newline at end of filediff --git a/apps/desktop/src-tauri/src/windows.rs b/apps/desktop/src-tauri/src/windows.rsindex 25b512581..e6d15e8fc 100644--- a/apps/desktop/src-tauri/src/windows.rs+++ b/apps/desktop/src-tauri/src/windows.rs@@ -144,7 +144,6 @@ impl ShowCapWindow {.resizable(false).maximized(false).maximizable(false)- .maximized(false).build()?,Self::Settings { page } => self.window_builder(