From defad86cf454fd385dad46a83942c8926c76e0dd Mon Sep 17 00:00:00 2001 From: Louis Beaumont Date: Tue, 30 Jul 2024 16:59:30 +0200 Subject: [PATCH] chore: debug --- .github/workflows/release-app.yml | 1 + .../apps/screenpipe-app-tauri/scripts/pre_build.js | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml index 14e38235..1cb5254b 100644 --- a/.github/workflows/release-app.yml +++ b/.github/workflows/release-app.yml @@ -138,6 +138,7 @@ jobs: export PKG_CONFIG_ALLOW_CROSS=1 fi cargo build --release ${{ matrix.args }} + ls -R target/release # Run pre build again to copy the CLI into app - name: Run pre_build.js on ${{ matrix.platform }} diff --git a/examples/apps/screenpipe-app-tauri/scripts/pre_build.js b/examples/apps/screenpipe-app-tauri/scripts/pre_build.js index 01c7b9a3..648d3b71 100644 --- a/examples/apps/screenpipe-app-tauri/scripts/pre_build.js +++ b/examples/apps/screenpipe-app-tauri/scripts/pre_build.js @@ -108,6 +108,16 @@ if (platform == 'windows') { const wgetPath = await findWget(); console.log('Copying screenpipe binary...'); + console.log('Current working directory:', process.cwd()); + const targetDir = path.join(process.cwd(), '..', '..', '..', 'target', 'release'); + console.log('Checking contents of:', targetDir); + try { + const files = await fs.readdir(targetDir); + console.log('Files in target/release:', files); + } catch (error) { + console.error('Error reading target/release directory:', error); + } + const potentialPaths = [ path.join(__dirname, '..', '..', '..', '..', 'target', 'release', 'screenpipe.exe'), path.join(__dirname, '..', '..', '..', 'target', 'release', 'screenpipe.exe'),