Skip to content

ibrahimpenekli/unity-macos-notarization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSX Notarization for Unity

Notarization is a process where Apple verifies your application to make sure it has a Developer ID code signature and doesn’t contain malicious content. For more information about notarization, see Apple’s documentation on Notarizing macOS Software Before Distribution.

Install via Unity Package Manager:

  • Add "com.inscept.notarization": "https://github.com/ibrahimpenekli/unity-macos-notarization.git#1.1.2" to your project's package manifest file in dependencies section.
  • Or, Package Manager > Add package from git URL... and paste this URL: https://github.com/ibrahimpenekli/unity-macos-notarization.git#1.1.2

How to Use?

You can notarize your app either using in post process build automatically or you can manually call notarization method in your custom build pipeline.

Automatic Usage

Go to Project Settings > OSX Notarization and set your information. Don't forget to enable notarization in the settings. You're done! Notarization process is done in post process build script automatically.

Notarization process will be ignored for these cases:

  • Build target is different than StandaloneOSX
  • Development build
  • Build is completed by Unity Cloud Build

Manual Usage

You can directly call notarization process within your build pipeline as follows:

public class MyPostprocessBuild : IPostprocessBuildWithReport
    {
        public int callbackOrder => 9999;

        public void OnPostprocessBuild(BuildReport report)
        {
            if (report.summary.platform == BuildTarget.StandaloneOSX)
            {
                NotarizationUtility.Submit(outputPath);
            }
        }
    }

About

Enables Apple's macOS app notarization process to be done in build process automatically.

Topics

Resources

License

Stars

Watchers

Forks