可以使用 Third Party Notices.md
和 LICENSE.md
文件来确保包符合任何法律要求。例如,下面是 Unity Timeline 包中的一个示例许可证文件:
Unity Timeline copyright © 2017-2019 Unity Technologies ApS
Licensed under the Unity Companion License for Unity-dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License).
Unless expressly provided otherwise, the Software under this license is made available strictly on an "AS IS" BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions.
如果包中包含第三方元素,则可以将许可证包含在 Third Party Notices.md
文件中。对于要包含的每个许可证,可以包含 Component Name、License Type 和 Provide License Details 部分。例如:
This package contains third-party software components governed by the license(s) indicated below:
Component Name: Semver
License Type: "MIT"
[SemVer License](https://github.com/myusername/semver/blob/master/License.txt)
Component Name: MyComponent
License Type: "MyLicense"
[MyComponent License](https://www.mycompany.com/licenses/License.txt)
注意:Provide License Details 部分中的 URL 应指向包含复制的许可证和版权信息(如果适用)的位置。