I signed and notarized my macos application and created a zip archive and uploaded it to a windows IIS web server.
When I downloaded it and unzipped it in a mac with Catalina or Big Sur and opened it, I got the error message "You do not have permission to open the application XX".
I have to do the following two things to make it work:
Is there any way to prevent os from adding quarantine attribute and stripping off execution attribute from application if the application is downloaded from internet?
When I downloaded it and unzipped it in a mac with Catalina or Big Sur and opened it, I got the error message "You do not have permission to open the application XX".
I have to do the following two things to make it work:
Run "sudo xattr -rd com.apple.quarantine path/to/myapp" to remove the quarantine attribute.
Run "chmod -R 755 paht/to/myapp" to grant the execution permission to the app because the attribute is stripped off by OS after download.
Is there any way to prevent os from adding quarantine attribute and stripping off execution attribute from application if the application is downloaded from internet?