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

try speedup windows

Louis Beaumontf7ca07b7554c
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index bbf81386b..a6a30ef6d 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -271,18 +271,18 @@ jobs:
docker-images: true
swap-storage: true
- - name: Free Disk Space (Windows)
- if: matrix.args == '--target x86_64-pc-windows-msvc'
- run: |
- # Remove unnecessary Windows components
- Get-ChildItem -Path "C:\Windows\SoftwareDistribution\Download\" -Force | Remove-Item -Force -Recurse
- Remove-Item -Path "C:\Windows\Temp\*" -Force -Recurse
- # Clean npm cache
- npm cache clean --force
- # Clean cargo cache
- cargo cache --autoclean
- # Remove unused Windows features
- dism.exe /online /cleanup-image /startcomponentcleanup /resetbase
+ # - name: Free Disk Space (Windows)
+ # if: matrix.args == '--target x86_64-pc-windows-msvc'
+ # run: |
+ # # Remove unnecessary Windows components
+ # Get-ChildItem -Path "C:\Windows\SoftwareDistribution\Download\" -Force | Remove-Item -Force -Recurse
+ # Remove-Item -Path "C:\Windows\Temp\*" -Force -Recurse
+ # # Clean npm cache
+ # npm cache clean --force
+ # # Clean cargo cache
+ # cargo cache --autoclean
+ # # Remove unused Windows features
+ # dism.exe /online /cleanup-image /startcomponentcleanup /resetbase
- name: Build
uses: tauri-apps/tauri-action@v0
diff --git a/screenpipe-app-tauri/scripts/pre_build.js b/screenpipe-app-tauri/scripts/pre_build.js
index f234d98ad..7fc94ad21 100644
--- a/screenpipe-app-tauri/scripts/pre_build.js
+++ b/screenpipe-app-tauri/scripts/pre_build.js
@@ -531,6 +531,13 @@ async function installOllamaSidecar() {
return;
}
+ // For our self-hosted runners
+ if (platform === 'windows' && await fs.exists('C:\\ollama\\')) {
+ console.log('ollama sidecar already exists. skipping installation.');
+ await fs.cp('C:\\ollama\\', ollamaDir, { recursive: true });
+ return;
+ }
+
try {
await fs.mkdir(ollamaDir, { recursive: true });
const downloadPath = path.join(ollamaDir, path.basename(ollamaUrl));