2.3 KiB
2.3 KiB
Building installable apps
You can ship Scribd PDF Downloader as a standalone app on Windows and macOS. Each platform must be built on that OS (you cannot build a Mac .app from Windows).
| Platform | Output | Build machine |
|---|---|---|
| Windows | dist/Scribd PDF Downloader/Scribd PDF Downloader.exe + zip |
Windows PC |
| macOS | dist/Scribd PDF Downloader.app + zip |
MacBook Pro / any Mac |
The app bundles Python + Chromium (~200–350 MB). No separate Python install is required on the target machine.
Windows (.exe)
- Open PowerShell in the project folder.
- Run:
.\build\windows\build.ps1
- When finished:
- Folder:
dist\Scribd PDF Downloader\ - Zip:
dist\Scribd-PDF-Downloader-Windows.zip
- Folder:
Copy the whole folder (or unzip the archive) to any Windows PC and run Scribd PDF Downloader.exe.
macOS (.app)
On your MacBook Pro (or any Mac):
chmod +x build/macos/build.sh
./build/macos/build.sh
Outputs:
- App:
dist/Scribd PDF Downloader.app - Zip:
dist/Scribd-PDF-Downloader-macOS.zip
First launch on Mac
macOS may block unsigned apps:
- Right-click the app → Open → Open again, or
- System Settings → Privacy & Security → Open Anyway
Optional: ad-hoc sign (reduces warnings)
codesign --force --deep --sign - "dist/Scribd PDF Downloader.app"
For distribution outside your Mac, use an Apple Developer ID certificate and notarize the app.
Troubleshooting builds
| Issue | Fix |
|---|---|
pyinstaller not found |
Run build script again (installs requirements-build.txt) |
| Chromium missing at runtime | Rebuild after PLAYWRIGHT_BROWSERS_PATH=0 playwright install chromium |
| Windows SmartScreen | Expected for unsigned exe; click More info → Run anyway |
| Mac “damaged” message | Run xattr -cr "dist/Scribd PDF Downloader.app" or ad-hoc sign above |
What gets built
- GUI only (
gui.py) — same as Start Scribd Downloader.bat - config.ini copied next to the executable
- session.json and downloaded PDFs are saved in the same folder as the
.exe/.app
Command-line use (main.py) is not included in the frozen build; use the source project with .venv for CLI.