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 Goldinf6dcbfa6f4c1
diff --git a/screenpipe-app-tauri/scripts/pre_build.js b/screenpipe-app-tauri/scripts/pre_build.js
index 770a015b2..8b767d188 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 $`tar -xf ${onnxRuntimeLibs}`
+ await $`Expand-Archive -Path ${onnxRuntimeLibs}`
await $`rm ${onnxRuntimeLibs} -Recurse -Force`;
console.log('ONNX Runtime libraries for Windows set up successfully.')
} else {
@@ -519,4 +519,4 @@ if (action?.includes('--build' || action.includes('--dev'))) {
}
await $`bun install`
await $`bunx tauri ${action.includes('--dev') ? 'dev' : 'build'}`
-}
\ No newline at end of file
+}