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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: CONTRIBUTING.md - windows part (#1744)
Divanshu Grover988efc04554c
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 69f23ad71..36cbaeaab 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -89,12 +89,17 @@ before you begin:[System.Environment]::SetEnvironmentVariable('LIBCLANG_PATH', 'C:\Program Files\LLVM\bin', 'User')[System.Environment]::SetEnvironmentVariable('PATH', "$([System.Environment]::GetEnvironmentVariable('PATH', 'User'));C:\Program Files (x86)\GnuWin32\bin", 'User')```--5. **setup Intel OpenMP DLLs**:+5. **clone the project**:+ ```powershell+ git clone https://github.com/mediar-ai/screenpipe.git+ cd screenpipe+ ```+6. **setup Intel OpenMP DLLs**:- make sure your in root of the project i.e screenpipe- Ensure Python and `pip` are installed before running the script.```powershell+ cd screenpipe# Define the target directory where Intel OpenMP DLLs will be copied$mkl_dir = (pwd).Path + "\screenpipe-app-tauri\src-tauri\mkl"New-Item -ItemType Directory -Force -Path $mkl_dir | Out-Null@@ -114,10 +119,11 @@ before you begin:# Clean up the temporary directoryRemove-Item -Path $temp_dir -Recurse -Force```-6. **make sure vcredist is present on system**:+7. **make sure vcredist is present on system**:- make sure your in root of the project i.e screenpipe```powershell+ cd screenpipe$path = "C:\Windows\System32\vcruntime140.dll"if (-Not (Test-Path $path)) {@@ -138,16 +144,15 @@ before you begin:}# Copy vcruntime140.dll to the specified directory- $vcredist_dir = "screenpipe-app-tauri/src-tauri/vcredist"+ $vcredist_dir = (pwd).Path + "\screenpipe-app-tauri\src-tauri\vcredist"New-Item -ItemType Directory -Force -Path $vcredist_dir | Out-NullCopy-Item $path -Destination $vcredist_dir -ForceWrite-Host "vcruntime140.dll copied successfully!"```-7. **clone and build**:+8. **build**:```powershell- git clone https://github.com/mediar-ai/screenpipecd screenpipecargo build --releasecd screenpipe-app-tauridiff --git a/screenpipe-app-tauri/scripts/pre_build.js b/screenpipe-app-tauri/scripts/pre_build.jsindex 8c4e29831..24a72e399 100644--- a/screenpipe-app-tauri/scripts/pre_build.js+++ b/screenpipe-app-tauri/scripts/pre_build.js@@ -88,8 +88,13 @@ async function copyBunBinary() {let bunSrc, bunDest1, bunDest2;if (platform === 'windows') {// Get and log npm global prefix- const npmGlobalPrefix = (await $`npm config get prefix`.text()).trim();- console.log('npm global prefix:', npmGlobalPrefix);+ let npmGlobalPrefix = null;+ try {+ npmGlobalPrefix = (await $`npm config get prefix`.text()).trim();+ console.log('npm global prefix:', npmGlobalPrefix);+ } catch (error) {+ console.log('failed to get npm global prefix:', error.message);+ }// Try to find bun location using system commandslet bunPathFromSystem;@@ -107,15 +112,12 @@ async function copyBunBinary() {console.log('found bun using system command at:', bunPathFromSystem);}+ // Start with basic paths that don't depend on npmGlobalPrefixconst possibleBunPaths = [// Add system-found path if it existsbunPathFromSystem,// Bun's default installer locationpath.join(os.homedir(), '.bun', 'bin', 'bun.exe'),- // npm global paths- path.join(npmGlobalPrefix, 'node_modules', 'bun', 'bin', 'bun.exe'),- path.join(npmGlobalPrefix, 'bun.exe'),- path.join(npmGlobalPrefix, 'bin', 'bun.exe'),// AppData pathspath.join(os.homedir(), 'AppData', 'Local', 'bun', 'bun.exe'),// Direct paths@@ -125,6 +127,15 @@ async function copyBunBinary() {'bun.exe'].filter(Boolean);+ // Add npm paths only if npmGlobalPrefix was successfully retrieved+ if (npmGlobalPrefix) {+ possibleBunPaths.push(+ path.join(npmGlobalPrefix, 'node_modules', 'bun', 'bin', 'bun.exe'),+ path.join(npmGlobalPrefix, 'bun.exe'),+ path.join(npmGlobalPrefix, 'bin', 'bun.exe')+ );+ }+console.log('searching bun in these locations:');possibleBunPaths.forEach(p => console.log('- ' + p));