Skip to content

Commit

Permalink
chore: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Jul 30, 2024
1 parent 2cd30ed commit defad86
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
10 changes: 10 additions & 0 deletions examples/apps/screenpipe-app-tauri/scripts/pre_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit defad86

Please sign in to comment.