When installed apps from 3rd party or Internet download, macOS always prompt “Downloaded .app is damaged and can’t be opened”.
The solution is really simple:
Run the following command before launching the app:
sudo spctl --master-disable
Launching the app and finish installing it, and then run the following command to re-enable the restriction:
sudo spctl --master-enable