https://github.com/ibrahimpenekli/unity-macos-notarization
Enables Apple's macOS app notarization process to be done in build process automatically.
https://github.com/ibrahimpenekli/unity-macos-notarization
codesign macos notarization notary staple
Last synced: 5 months ago
JSON representation
Enables Apple's macOS app notarization process to be done in build process automatically.
- Host: GitHub
- URL: https://github.com/ibrahimpenekli/unity-macos-notarization
- Owner: ibrahimpenekli
- License: mit
- Created: 2023-02-24T13:21:28.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-26T09:21:21.000Z (about 3 years ago)
- Last Synced: 2024-12-21T10:40:28.382Z (over 1 year ago)
- Topics: codesign, macos, notarization, notary, staple
- Language: C#
- Homepage:
- Size: 50.8 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://developer.apple.com/documentation/security/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:
```csharp
public class MyPostprocessBuild : IPostprocessBuildWithReport
{
public int callbackOrder => 9999;
public void OnPostprocessBuild(BuildReport report)
{
if (report.summary.platform == BuildTarget.StandaloneOSX)
{
NotarizationUtility.Submit(outputPath);
}
}
}
```