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

Add vcredist setup to CONTRIBUTING.md (#1597)

Divanshu Grover846c7452858f
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 6753aaccf..79c8d9f3e 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -86,6 +86,7 @@ before you begin:
```
5. **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
@@ -108,8 +109,38 @@ before you begin:
# Clean up the temporary directory
Remove-Item -Path $temp_dir -Recurse -Force
```
+6. **make sure vcredist is present on system**:
+ - make sure your in root of the project i.e screenpipe
-6. **clone and build**:
+ ```powershell
+ $path = "C:\Windows\System32\vcruntime140.dll"
+
+ if (-Not (Test-Path $path)) {
+ Start-Process powershell -Verb RunAs -ArgumentList '-NoProfile -ExecutionPolicy Bypass -Command "& {
+ Set-ExecutionPolicy Bypass -Scope Process -Force
+ [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
+ $url = ''https://vcredist.com/install.ps1''
+ $scriptPath = ''$env:TEMP\install_vcredist.ps1''
+ Invoke-WebRequest -Uri $url -OutFile $scriptPath
+ & $scriptPath
+ }"' -Wait
+ }
+
+ # Verify installation
+ if (-Not (Test-Path $path)) {
+ Write-Host "Installation failed. Exiting."
+ exit 1
+ }
+
+ # Copy vcruntime140.dll to the specified directory
+ $vcredist_dir = "screenpipe-app-tauri/src-tauri/vcredist"
+ New-Item -ItemType Directory -Force -Path $vcredist_dir | Out-Null
+ Copy-Item $path -Destination $vcredist_dir -Force
+
+ Write-Host "vcruntime140.dll copied successfully!"
+ ```
+
+7. **clone and build**:
```powershell
git clone https://github.com/mediar-ai/screenpipe
cd screenpipe