From 41cc38af1ffa172496beeb0fb79caa0a7f884df4 Mon Sep 17 00:00:00 2001 From: Loup Date: Sun, 1 Oct 2023 17:48:20 +0530 Subject: [PATCH 1/4] Removed deprecated methods --- index.json | 3 ++- plugin_manager.py | 4 ++-- plugins/utilities.json | 3 ++- plugins/utilities/practice_tools.py | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/index.json b/index.json index 3369fcb..871e4f6 100644 --- a/index.json +++ b/index.json @@ -1,6 +1,7 @@ { "plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py", "versions": { + "1.0.2": null, "1.0.1": { "api_version": 8, "commit_sha": "7dba50e", @@ -116,4 +117,4 @@ "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/maps.json" ], "external_source_url": "https://github.com/{repository}/{content_type}/{tag}/category.json" -} \ No newline at end of file +} diff --git a/plugin_manager.py b/plugin_manager.py index e883fba..a894ba1 100644 --- a/plugin_manager.py +++ b/plugin_manager.py @@ -799,7 +799,7 @@ class Plugin: def latest_compatible_version(self): if self._latest_compatible_version is None: for number, info in self.info["versions"].items(): - if info["api_version"] == babase.app.api_version: + if info["api_version"] == babase.app.env.api_version: self._latest_compatible_version = PluginVersion( self, (number, info), @@ -1233,7 +1233,7 @@ class PluginManager: async def get_update_details(self): index = await self.get_index() for version, info in index["versions"].items(): - if info["api_version"] != babase.app.api_version: + if info["api_version"] != babase.app.env.api_version: # No point checking a version of the API game doesn't support. continue if version == PLUGIN_MANAGER_VERSION: diff --git a/plugins/utilities.json b/plugins/utilities.json index f9fbe0b..341f9bc 100644 --- a/plugins/utilities.json +++ b/plugins/utilities.json @@ -722,6 +722,7 @@ } ], "versions": { + "2.0.1": null, "2.0.0": { "api_version": 8, "commit_sha": "9340deb", @@ -899,4 +900,4 @@ } } } -} \ No newline at end of file +} diff --git a/plugins/utilities/practice_tools.py b/plugins/utilities/practice_tools.py index 1c7fe08..88dcc80 100644 --- a/plugins/utilities/practice_tools.py +++ b/plugins/utilities/practice_tools.py @@ -185,7 +185,7 @@ class Practice(Plugin): def on_app_running(self) -> None: """Plugin start point.""" - if app.build_number < 20427: + if app.env.build_number < 20427: bui.screenmessage( 'ok', color=(.8, .1, .1)) From 292d5cc1fc6f19f09b027ccc01b711a725183654 Mon Sep 17 00:00:00 2001 From: Loup-Garou911XD Date: Sun, 1 Oct 2023 12:20:03 +0000 Subject: [PATCH 2/4] [ci] apply-version-metadata --- index.json | 9 +++++++-- plugins/utilities.json | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/index.json b/index.json index 871e4f6..f8038a6 100644 --- a/index.json +++ b/index.json @@ -1,7 +1,12 @@ { "plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py", "versions": { - "1.0.2": null, + "1.0.2": { + "api_version": 8, + "commit_sha": "41cc38a", + "released_on": "01-10-2023", + "md5sum": "908dc850e1e33cba0deea94309fcfb86" + }, "1.0.1": { "api_version": 8, "commit_sha": "7dba50e", @@ -117,4 +122,4 @@ "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/maps.json" ], "external_source_url": "https://github.com/{repository}/{content_type}/{tag}/category.json" -} +} \ No newline at end of file diff --git a/plugins/utilities.json b/plugins/utilities.json index 341f9bc..4246bcc 100644 --- a/plugins/utilities.json +++ b/plugins/utilities.json @@ -722,7 +722,12 @@ } ], "versions": { - "2.0.1": null, + "2.0.1": { + "api_version": 8, + "commit_sha": "41cc38a", + "released_on": "01-10-2023", + "md5sum": "9ed00b2c86bd62168aa1cab6ea5fdfe4" + }, "2.0.0": { "api_version": 8, "commit_sha": "9340deb", @@ -900,4 +905,4 @@ } } } -} +} \ No newline at end of file From 818ec655be9664c45ef68ddf0fd874da6ebacb1a Mon Sep 17 00:00:00 2001 From: Rikko Date: Sun, 1 Oct 2023 18:43:25 +0530 Subject: [PATCH 3/4] Bump plugin manager source version --- index.json | 9 ++------- plugin_manager.py | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/index.json b/index.json index f8038a6..871e4f6 100644 --- a/index.json +++ b/index.json @@ -1,12 +1,7 @@ { "plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py", "versions": { - "1.0.2": { - "api_version": 8, - "commit_sha": "41cc38a", - "released_on": "01-10-2023", - "md5sum": "908dc850e1e33cba0deea94309fcfb86" - }, + "1.0.2": null, "1.0.1": { "api_version": 8, "commit_sha": "7dba50e", @@ -122,4 +117,4 @@ "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/maps.json" ], "external_source_url": "https://github.com/{repository}/{content_type}/{tag}/category.json" -} \ No newline at end of file +} diff --git a/plugin_manager.py b/plugin_manager.py index a894ba1..ea65c03 100644 --- a/plugin_manager.py +++ b/plugin_manager.py @@ -32,7 +32,7 @@ _env = _babase.env() _uiscale = bui.app.ui_v1.uiscale -PLUGIN_MANAGER_VERSION = "1.0.1" +PLUGIN_MANAGER_VERSION = "1.0.2" REPOSITORY_URL = "https://github.com/bombsquad-community/plugin-manager" # Current tag can be changed to "staging" or any other branch in # plugin manager repo for testing purpose. From 8233d3290ef188d75450e4d2c2409c68b1f1c4cb Mon Sep 17 00:00:00 2001 From: rikkolovescats Date: Sun, 1 Oct 2023 13:16:21 +0000 Subject: [PATCH 4/4] [ci] apply-version-metadata --- index.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/index.json b/index.json index 871e4f6..f913ecd 100644 --- a/index.json +++ b/index.json @@ -1,7 +1,12 @@ { "plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py", "versions": { - "1.0.2": null, + "1.0.2": { + "api_version": 8, + "commit_sha": "818ec65", + "released_on": "01-10-2023", + "md5sum": "9cd1facb888e63ba08b0607a8561991a" + }, "1.0.1": { "api_version": 8, "commit_sha": "7dba50e", @@ -117,4 +122,4 @@ "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/maps.json" ], "external_source_url": "https://github.com/{repository}/{content_type}/{tag}/category.json" -} +} \ No newline at end of file