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'),