Exclude demos from mini builds

Fixes #17750.