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

chore: update script build

Louis Beaumontc208cddafc67
diff --git a/examples/apps/screenpipe-app-tauri/scripts/pre_build.js b/examples/apps/screenpipe-app-tauri/scripts/pre_build.js
index 2defc077a..fb41838ca 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.')