Ideally, but even if not, just work on it and don't release anything about it until you quit the company (preferably with a bit of a buffer for deniability sake). I wouldn't normally advocate for this behavior, but these draconian rules shouldn't be so commonplace to begin with, and also companies shouldn't be able to control what you do in your free time.