Deployment build

Fixes #1684