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

fix: build

Louis Beaumont8dfe29fcfbe3
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index 7325f0656..d6d0cbdad 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -130,6 +130,10 @@ jobs:
# if: matrix.platform == 'windows-latest'
# uses: mxschmitt/action-tmate@v3
+ - name: Install wget on Linux
+ if: matrix.platform == 'ubuntu-22.04'
+ run: sudo apt-get install -y wget
+
- name: Run pre_build.js
shell: bash
env:
@@ -160,7 +164,6 @@ jobs:
fi
cargo build --release ${{ matrix.args }}
-
# Run pre build again to copy the CLI into app
- name: Run pre_build.js
shell: bash
diff --git a/screenpipe-app-tauri/scripts/pre_build.js b/screenpipe-app-tauri/scripts/pre_build.js
index 590d98520..5c7a93faa 100644
--- a/screenpipe-app-tauri/scripts/pre_build.js
+++ b/screenpipe-app-tauri/scripts/pre_build.js
@@ -669,7 +669,7 @@ async function installOllamaSidecar() {
ollamaExe = 'ollama-x86_64-pc-windows-msvc.exe';
ollamaUrl = `https://github.com/ollama/ollama/releases/download/${ollamaVersion}/ollama-windows-amd64.zip`;
} else if (platform === 'macos') {
- ollamaExe = 'ollama-darwin';
+ ollamaExe = `ollama-${process.arch === 'arm64' ? 'aarch64' : 'x86_64'}-apple-darwin`;
ollamaUrl = `https://github.com/ollama/ollama/releases/download/${ollamaVersion}/ollama-darwin`;
} else if (platform === 'linux') {
ollamaExe = 'ollama-x86_64-unknown-linux-gnu';
@@ -690,7 +690,11 @@ async function installOllamaSidecar() {
const downloadPath = path.join(ollamaDir, path.basename(ollamaUrl));
console.log('Downloading Ollama...');
- await $`wget -q --show-progress ${ollamaUrl} -O ${downloadPath}`;
+ if (platform === 'windows') {
+ await $`powershell -command "Invoke-WebRequest -Uri '${ollamaUrl}' -OutFile '${downloadPath}'"`;
+ } else {
+ await $`wget -q --show-progress ${ollamaUrl} -O ${downloadPath}`;
+ }
console.log('Extracting Ollama...');
if (platform === 'windows') {