macOS Window Capture
Steps
- Install dependencies
bash
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
pip3 install pyinstaller
pyinstaller --onedir --name window_capture window_capture.py (optional)
pyinstaller window_capture.spec- Test run
bash
./dist/window_capture/window_captureCalling in Electron
Add the following to
build.extraResourcesinpackage.json:
json
{
"build": {
"extraResources": [
{
"from": "python/window_capture",
"to": "bin/window_capture"
}
]
}
}