mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2026-08-15 13:03:08 +00:00
commit
b9c82567b8
6 changed files with 19 additions and 16 deletions
16
index.json
16
index.json
|
|
@ -1,6 +1,12 @@
|
|||
{
|
||||
"plugin_manager_url": "http://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py",
|
||||
"plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py",
|
||||
"versions": {
|
||||
"0.1.8": {
|
||||
"api_version": 7,
|
||||
"commit_sha": "bbce3bd",
|
||||
"released_on": "30-11-2022",
|
||||
"md5sum": "0218c7d6b08896f18479467fdd45aa27"
|
||||
},
|
||||
"0.1.7": {
|
||||
"api_version": 7,
|
||||
"commit_sha": "2fe966c",
|
||||
|
|
@ -27,9 +33,9 @@
|
|||
}
|
||||
},
|
||||
"categories": [
|
||||
"http://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/utilities.json",
|
||||
"http://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/minigames.json",
|
||||
"http://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/maps.json"
|
||||
"https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/utilities.json",
|
||||
"https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/minigames.json",
|
||||
"https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/maps.json"
|
||||
],
|
||||
"external_source_url": "http://github.com/{repository}/{content_type}/{tag}/category.json"
|
||||
"external_source_url": "https://github.com/{repository}/{content_type}/{tag}/category.json"
|
||||
}
|
||||
|
|
@ -20,12 +20,9 @@ _env = _ba.env()
|
|||
_uiscale = ba.app.ui.uiscale
|
||||
|
||||
|
||||
PLUGIN_MANAGER_VERSION = "0.1.7"
|
||||
REPOSITORY_URL = "http://github.com/bombsquad-community/plugin-manager"
|
||||
PLUGIN_MANAGER_VERSION = "0.1.8"
|
||||
REPOSITORY_URL = "https://github.com/bombsquad-community/plugin-manager"
|
||||
CURRENT_TAG = "main"
|
||||
# XXX: Using https with `ba.open_url` seems to trigger a pop-up dialog box on
|
||||
# Android currently (v1.7.6) and won't open the actual URL in a web-browser.
|
||||
# Let's fallback to http for now until this gets resolved.
|
||||
INDEX_META = "{repository_url}/{content_type}/{tag}/index.json"
|
||||
HEADERS = {
|
||||
"User-Agent": _env["user_agent_string"],
|
||||
|
|
@ -36,7 +33,7 @@ REGEXP = {
|
|||
"plugin_entry_points": re.compile(b"(ba_meta export plugin\n+class )(.*)\\("),
|
||||
"minigames": re.compile(b"(ba_meta export game\n+class )(.*)\\("),
|
||||
}
|
||||
DISCORD_URL = "http://ballistica.net/discord"
|
||||
DISCORD_URL = "https://ballistica.net/discord"
|
||||
|
||||
_CACHE = {}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Maps",
|
||||
"description": "Maps",
|
||||
"plugins_base_url": "http://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/maps",
|
||||
"plugins_base_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/maps",
|
||||
"plugins": {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "Minigames",
|
||||
"description": "Minigames",
|
||||
"plugins_base_url": "http://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/minigames",
|
||||
"plugins_base_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/minigames",
|
||||
"plugins": {
|
||||
"soccer": {
|
||||
"description": "Shoot the ball in left or right edge of the map to score",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "Utilities",
|
||||
"description": "Utilities",
|
||||
"plugins_base_url": "http://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/utilities",
|
||||
"plugins_base_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/utilities",
|
||||
"plugins": {
|
||||
"share_replay": {
|
||||
"description": "Export replays to mods folder and share them with friends or have a backup",
|
||||
|
|
@ -161,7 +161,7 @@
|
|||
},
|
||||
"colorscheme": {
|
||||
"description": "Create custom UI colorschemes!",
|
||||
"external_url": "http://www.youtube.com/watch?v=qatwWrBAvjc",
|
||||
"external_url": "https://www.youtube.com/watch?v=qatwWrBAvjc",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Rikko",
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ class BaseCategoryMetadataTestCases:
|
|||
def test_keys(self):
|
||||
self.assertEqual(self.content["name"], self.name)
|
||||
self.assertTrue(isinstance(self.content["description"], str))
|
||||
self.assertTrue(self.content["plugins_base_url"].startswith("http"))
|
||||
self.assertTrue(self.content["plugins_base_url"].startswith("https"))
|
||||
self.assertTrue(isinstance(self.content["plugins"], dict))
|
||||
|
||||
def test_versions_order(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue