A reason for this could be that your offline.app file is not digitally signed and MacOS requires that all .app files are digitally signed in order to run. Similar windows 8, 8.1 and 10 have the same requirement.
To sign your offline files you would first need to purchase a code certificate from a code certificate provider (such as Comodo, DigiCert, etc.).
You could then use your certificate to sign your files using a codesign tool. Below are some examples from Digicert.