Skip to content

Commit c7ff615

Browse files
committed
better prepare.js logging
1 parent 8763820 commit c7ff615

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: apps/desktop/scripts/prepare.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import * as path from "node:path";
55
import { fileURLToPath } from "node:url";
66
import { exec as execCb, execSync } from "node:child_process";
77
import { promisify } from "node:util";
8-
import { platform } from "node:os";
98

109
const exec = promisify(execCb);
1110

@@ -67,8 +66,8 @@ async function prepareFfmpegSidecar() {
6766
// Skip downloading if the archive already exists
6867
if (!(await exists(ffmpegDownloadPath))) {
6968
if (await exists(ffmpegUnzippedPath)) return;
70-
console.log("Downloading ffmpeg archive...");
71-
console.log(`ffmpeg from: ${binaries.url}`);
69+
console.log(`Couldn't locate "ffmpeg-download.zip" in "${ffmpegDownloadPath}"`);
70+
console.log(`Downloading from: ${binaries.url}`);
7271
await fs.mkdir(binariesDir, { recursive: true });
7372

7473
const response = await fetch(binaries.url);
@@ -243,6 +242,8 @@ async function main() {
243242
}
244243

245244
main().catch((err) => {
246-
console.error("Error during sidecar preparation:", err);
245+
console.error("--- Preparation Failed");
246+
console.error(err);
247+
console.error("---");
247248
process.exit(1);
248249
});

Diff for: apps/desktop/src-tauri/src/windows.rs

-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ impl ShowCapWindow {
144144
.resizable(false)
145145
.maximized(false)
146146
.maximizable(false)
147-
.maximized(false)
148147
.build()?,
149148
Self::Settings { page } => self
150149
.window_builder(

0 commit comments

Comments
 (0)