I don't have an Apple developer accout, so you will need to build the app yourself using Xcode (archive and distribute) or remove the com.apple.quarantine extended attribute.
xattr -d com.apple.quarantine FunWithFlags.app
Also it can be added to your mac's Login Items.