From c208cddafc673e8291e48eb315b651f64ddcb962 Mon Sep 17 00:00:00 2001 From: Louis Beaumont Date: Tue, 30 Jul 2024 13:10:01 +0200 Subject: [PATCH] chore: update script build --- examples/apps/screenpipe-app-tauri/scripts/pre_build.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/apps/screenpipe-app-tauri/scripts/pre_build.js b/examples/apps/screenpipe-app-tauri/scripts/pre_build.js index 2defc077..fb41838c 100644 --- a/examples/apps/screenpipe-app-tauri/scripts/pre_build.js +++ b/examples/apps/screenpipe-app-tauri/scripts/pre_build.js @@ -126,7 +126,10 @@ if (platform == 'windows') { await $`${wgetPath} -nc --show-progress ${tesseractUrl} -O ${tesseractInstaller}` await $`"${process.cwd()}\\${tesseractInstaller}" /S /D=C:\\Program Files\\Tesseract-OCR` await $`rm ${tesseractInstaller}` - await $`mv "C:\\Program Files\\Tesseract-OCR" tesseract` + // Replace the mv command with xcopy + await $`xcopy "C:\\Program Files\\Tesseract-OCR" tesseract /E /I /H /Y` + // Optionally, remove the original directory if needed + // await $`rmdir "C:\\Program Files\\Tesseract-OCR" /S /Q` console.log('Tesseract for Windows set up successfully.') } else { console.log('Tesseract for Windows already exists.')