From 270fddff52b66e111ec8081b469805277e8e031e Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Fri, 17 May 2024 09:15:12 +0800 Subject: [PATCH] feat: do some trivial adaptions for blender 4.2 LTS - add blender_manifest.toml - add a removal note for bl_info in __init__.py. - it doesn't mean that this plugin now can be used in blender 4.2. I just add some trivial changes which do not break current compatibility to reduce migration work in future. --- bbp_ng/__init__.py | 2 ++ bbp_ng/blender_manifest.toml | 55 ++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 bbp_ng/blender_manifest.toml diff --git a/bbp_ng/__init__.py b/bbp_ng/__init__.py index 8da9d63..6ff7300 100644 --- a/bbp_ng/__init__.py +++ b/bbp_ng/__init__.py @@ -10,6 +10,8 @@ "doc_url": "https://github.com/yyc12345/BallanceBlenderHelper", "tracker_url": "https://github.com/yyc12345/BallanceBlenderHelper/issues" } +# TODO: this bl_info may be outdated since Blender 4.2 LTS. +# Delete it when adapting to Blender 4.2 and use blender_manifest.toml instead. #region Reload and Import diff --git a/bbp_ng/blender_manifest.toml b/bbp_ng/blender_manifest.toml new file mode 100644 index 0000000..8df40e6 --- /dev/null +++ b/bbp_ng/blender_manifest.toml @@ -0,0 +1,55 @@ +# Full context are copied from https://docs.blender.org/manual/en/dev/extensions/getting_started.html +# Please note any update of this manifest + +schema_version = "1.0.0" + +# Example of manifest file for a Blender extension +# Change the values according to your extension +id = "bbp_ng" +version = "4.0.0" +name = "Ballance Blender Plugin" +tagline = "The specialized add-on served for creating custom game map in Ballance game" +maintainer = "yyc12345 " +# Supported types: "add-on", "theme" +type = "add-on" + +# Optional: add-ons can list which resources they will require: +# * "files" (for access of any filesystem operations) +# * "network" (for internet access) +# * "clipboard" (to read and/or write the system clipboard) +# * "camera" (to capture photos and videos) +# * "microphone" (to capture audio) +permissions = ["files"] + +# Optional link to documentation, support, source files, etc +website = "https://github.com/yyc12345/BallanceBlenderHelper" + +# Optional list defined by Blender and server, see: +# https://docs.blender.org/manual/en/dev/extensions/tags.html +tags = ["Object", "Mesh", "UV", "Import-Export"] + +blender_version_min = "4.2.0" +# Optional: maximum supported Blender version +# blender_version_max = "5.1.0" + +# License conforming to https://spdx.org/licenses/ (use "SPDX: prefix) +# https://docs.blender.org/manual/en/dev/extensions/licenses.html +license = [ + "SPDX:GPL-3.0-or-later", +] +# Optional: required by some licenses. +# copyright = [ +# "2002-2024 Developer Name", +# "1998 Company Name", +# ] + +# Optional list of supported platforms. If ommitted, the extension will be available in all operating systems. +platforms = ["windows-amd64", "linux-x86_64"] +# Supported platforms: "windows-amd64", "macos-arm64", "linux-x86_64", "windows-arm64", "macos-x86_64" + +# Optional: bundle 3rd party Python modules. +# https://docs.blender.org/manual/en/dev/extensions/python_wheels.html +# wheels = [ +# "./wheels/hexdump-3.3-py3-none-any.whl", +# "./wheels/jsmin-3.0.1-py3-none-any.whl" +# ] \ No newline at end of file