Giter Site home page Giter Site logo

ibrahimpenekli / unity-macos-notarization Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 52 KB

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

License: MIT License

C# 95.07% Shell 4.93%
codesign macos notarization notary staple

unity-macos-notarization's Introduction

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);
            }
        }
    }

unity-macos-notarization's People

Contributors

ibrahimpenekli avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

jacksonon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.