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

Update pre_build.js

Joe Goldin619127260fac
diff --git a/screenpipe-app-tauri/scripts/pre_build.js b/screenpipe-app-tauri/scripts/pre_build.js
index cee6ec173..3c6ddcc5b 100644
--- a/screenpipe-app-tauri/scripts/pre_build.js
+++ b/screenpipe-app-tauri/scripts/pre_build.js
@@ -210,7 +210,7 @@ if (platform == 'windows') {
if (!(await fs.exists(onnxRuntimeName))) {
console.log('Setting up ONNX Runtime libraries for Windows...')
await $`${wgetPath} -nc --no-check-certificate --show-progress ${onnxRuntimeUrl} -O ${onnxRuntimeLibs}`
- await $`unzip ${onnxRuntimeLibs} || Expand-Archive -Path ${onnxRuntimeLibs} || echo "Done extracting"`;
+ await $`unzip ${onnxRuntimeLibs} || tar -xf ${onnxRuntimeLibs} || echo "Done extracting"`;
await $`rm -rf ${onnxRuntimeLibs} || rm ${onnxRuntimeLibs} -Recurse -Force || echo "Done cleaning up zip"`;
console.log('ONNX Runtime libraries for Windows set up successfully.')
} else {