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

fxi: prebuild

Louis Beaumont2fef7c80ac0c
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index a23e550b3..c5d24b377 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -126,6 +126,8 @@ jobs:
# Run pre build
- name: Run pre_build.js on ${{ matrix.platform }}
shell: bash
+ env:
+ SKIP_SCREENPIPE_SETUP: true # avoid trying to copy screenpipe binaries, not yet built (next step)
run: |
bun ./scripts/pre_build.js ${{ matrix.pre-build-args }}
ls -R .
@@ -199,4 +201,3 @@ jobs:
# with:
# command: release publish ${{ secrets.CN_APP_SLUG }} --framework tauri
# api-key: ${{ secrets.CN_API_KEY }}
-
\ No newline at end of file
diff --git a/examples/apps/screenpipe-app-tauri/scripts/pre_build.js b/examples/apps/screenpipe-app-tauri/scripts/pre_build.js
index f926b8303..a04e04681 100644
--- a/examples/apps/screenpipe-app-tauri/scripts/pre_build.js
+++ b/examples/apps/screenpipe-app-tauri/scripts/pre_build.js
@@ -226,18 +226,12 @@ if (platform == 'macos') {
const nativeArch = os.arch();
const architectures = ['arm64', 'x86_64'];
- // Additional steps for x86_64 build on ARM Mac
- if (nativeArch === 'arm64') {
- console.log('\nTo build for x86_64 on your ARM Mac:');
- console.log('1. Install Rosetta 2 if not already installed:');
- console.log(' softwareupdate --install-rosetta');
- console.log('2. Set up an x86_64 Homebrew environment:');
- console.log(' arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"');
- // console.log('3. When building, use this command:');
- // console.log(' arch -x86_64 bunx tauri build -- --target x86_64-apple-darwin');
- }
+
// ! trash code that is going away soon :)
for (const arch of architectures) {
+ if (process.env['SKIP_SCREENPIPE_SETUP']) {
+ break;
+ }
console.log(`Setting up Tesseract & screenpipe bin for ${arch}...`);
if (arch === 'arm64') {