'Bundle application is defined as damaged on Mac M1 after uploading on drive and redownloaded

When I compile ioquake3 (or others bundle) on my Mac M1 and then I upload it on google drive (or others drive site), if I redownload it, it will always says that my application is damaged. xattr -c "ioquake3.app" fix the issue but I want that Mac users who download this don't get this error anymore. Do someone have a solution ? Maybe modifying the info.plist ? I don't know... If I download the release pre-compiled on the official site, or if I don't upload it before, it does not cause any problem.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source