mirror of
https://github.com/jellyfin/jellyfin-build.git
synced 2024-11-23 05:49:44 +00:00
update the plugin build with the new properties
This commit is contained in:
parent
8ba4553057
commit
03df22702b
@ -12,21 +12,18 @@ version: "1" # Please increment with each pull request
|
|||||||
|
|
||||||
# The supported Jellyfin version, usually the earliest binary-compatible
|
# The supported Jellyfin version, usually the earliest binary-compatible
|
||||||
# version. Based on the Jellyfin components from NuGet.
|
# version. Based on the Jellyfin components from NuGet.
|
||||||
jellyfin_version: "10.3.0" # The earliest binary-compatible version
|
targetAbi: "10.3.0" # The earliest binary-compatible version
|
||||||
|
|
||||||
# The owner name of the plugin, "jellyfin" for official plugins. Change
|
# The owner name of the plugin, "jellyfin" for official plugins. Change
|
||||||
# to your own name if you wish to remain a 3rd-party plugin.
|
# to your own name if you wish to remain a 3rd-party plugin.
|
||||||
owner: "jellyfin"
|
owner: "jellyfin"
|
||||||
|
|
||||||
# The nicely-formatted name of the plugin
|
|
||||||
nicename: "My Plugin Name"
|
|
||||||
|
|
||||||
# A short description of the plugin
|
# A short description of the plugin
|
||||||
description: "My plugin to do things"
|
overview: "My plugin to do things"
|
||||||
|
|
||||||
# A longer and more detailed description of the plugin; use multiple
|
# A longer and more detailed description of the plugin; use multiple
|
||||||
# lines as required for readability.
|
# lines as required for readability.
|
||||||
overview: >
|
description: >
|
||||||
My plugin does things. It can help your Jellyfin be more graceful.
|
My plugin does things. It can help your Jellyfin be more graceful.
|
||||||
|
|
||||||
Installing my plugin requires knowledge of flubber as required.
|
Installing my plugin requires knowledge of flubber as required.
|
||||||
|
@ -124,16 +124,13 @@ def build_plugin(project):
|
|||||||
def generate_plugin_manifest(project, build_cfg, bin_md5sum, project_version):
|
def generate_plugin_manifest(project, build_cfg, bin_md5sum, project_version):
|
||||||
# Extract our name, type, and plugin_id
|
# Extract our name, type, and plugin_id
|
||||||
project_name = project['name']
|
project_name = project['name']
|
||||||
project_type = project['type']
|
|
||||||
project_plugin_id = project['plugin_id']
|
|
||||||
project_plugin_guid = build_cfg['guid']
|
project_plugin_guid = build_cfg['guid']
|
||||||
project_plugin_nicename = build_cfg['nicename']
|
|
||||||
project_plugin_overview = build_cfg['overview']
|
project_plugin_overview = build_cfg['overview']
|
||||||
project_plugin_description = build_cfg['description']
|
project_plugin_description = build_cfg['description']
|
||||||
project_plugin_category = build_cfg['category']
|
project_plugin_category = build_cfg['category']
|
||||||
project_plugin_owner = build_cfg['owner']
|
project_plugin_owner = build_cfg['owner']
|
||||||
|
|
||||||
jellyfin_version = build_cfg['jellyfin_version']
|
target_abi = build_cfg['targetAbi']
|
||||||
|
|
||||||
build_date = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
build_date = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||||
|
|
||||||
@ -150,44 +147,22 @@ def generate_plugin_manifest(project, build_cfg, bin_md5sum, project_version):
|
|||||||
plugin_manifest_existing_version_fragments.append(version)
|
plugin_manifest_existing_version_fragments.append(version)
|
||||||
|
|
||||||
plugin_manifest_new_version_fragment = [{
|
plugin_manifest_new_version_fragment = [{
|
||||||
"name": project_plugin_nicename,
|
"version": project_version,
|
||||||
"versionStr": project_version,
|
"changelog": "changelog",
|
||||||
"classification": "Release",
|
"targetAbi": target_abi,
|
||||||
"description": "Release",
|
|
||||||
"requiredVersionStr": jellyfin_version,
|
|
||||||
"sourceUrl": "https://repo.jellyfin.org/releases/plugin/{0}/{0}_{1}.zip".format(project_name, project_version),
|
"sourceUrl": "https://repo.jellyfin.org/releases/plugin/{0}/{0}_{1}.zip".format(project_name, project_version),
|
||||||
"targetFilename": "{0}_{1}.zip".format(project_name, project_version),
|
|
||||||
"checksum": bin_md5sum,
|
"checksum": bin_md5sum,
|
||||||
"timestamp": build_date,
|
"timestamp": build_date
|
||||||
"runtimes": "netframework,netcore"
|
|
||||||
}]
|
}]
|
||||||
plugin_manifest_versions = plugin_manifest_new_version_fragment + plugin_manifest_existing_version_fragments
|
plugin_manifest_versions = plugin_manifest_new_version_fragment + plugin_manifest_existing_version_fragments
|
||||||
|
|
||||||
plugin_manifest_fragment = {
|
plugin_manifest_fragment = {
|
||||||
"id": project_plugin_id,
|
"guid": project_plugin_guid,
|
||||||
"packageId": project_plugin_id,
|
|
||||||
"name": project_plugin_nicename,
|
"name": project_plugin_nicename,
|
||||||
"shortDescription": project_plugin_description,
|
"description": project_plugin_description,
|
||||||
"overview": project_plugin_overview,
|
"overview": project_plugin_overview,
|
||||||
"isPremium": False,
|
|
||||||
"richDescUrl": "",
|
|
||||||
"thumbImage": "",
|
|
||||||
"previewImage": "",
|
|
||||||
"type": "UserInstalled",
|
|
||||||
"owner": project_plugin_owner,
|
"owner": project_plugin_owner,
|
||||||
"category": project_plugin_category,
|
"category": project_plugin_category,
|
||||||
"titleColor": "#FFFFFF",
|
|
||||||
"featureId": project_plugin_nicename,
|
|
||||||
"regInfo": "",
|
|
||||||
"price": 0.00,
|
|
||||||
"targetSystem": "Server",
|
|
||||||
"guid": project_plugin_guid,
|
|
||||||
"adult": 0,
|
|
||||||
"totalRatings": 1,
|
|
||||||
"avgRating": 5,
|
|
||||||
"isRegistered": False,
|
|
||||||
"expDate": None,
|
|
||||||
"installs": 0,
|
|
||||||
"versions": plugin_manifest_versions
|
"versions": plugin_manifest_versions
|
||||||
}
|
}
|
||||||
with open(manifest_fragment_file_name, 'w') as manifest_fragment_file:
|
with open(manifest_fragment_file_name, 'w') as manifest_fragment_file:
|
||||||
|
Loading…
Reference in New Issue
Block a user