Skip to content

Commit

Permalink
chore: update script build
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Jul 30, 2024
1 parent b5146e5 commit c208cdd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/apps/screenpipe-app-tauri/scripts/pre_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
Expand Down

0 comments on commit c208cdd

Please sign in to comment.