Yeah Windows does the same thing. It's something indie game devs run into. If you release on Steam, Steam launches your game. Otherwise you have to pay a certificate authority to sign your game or Windows Smart Screen will do the same "this code is sketchy. Are you really really really sure you want to run it?" thing MacOS does for non-notarized apps.