From bd3f6fe2e588085f592485641935c056ff28b716 Mon Sep 17 00:00:00 2001 From: DDSRem <1448139087@qq.com> Date: Wed, 25 Mar 2026 11:45:08 +0800 Subject: [PATCH] fix python-hosts --- package.json | 3 ++- plugins/customhosts/__init__.py | 2 +- plugins/customhosts/requirements.txt | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 plugins/customhosts/requirements.txt diff --git a/package.json b/package.json index 9dc5a69..0f8c813 100644 --- a/package.json +++ b/package.json @@ -191,12 +191,13 @@ "name": "自定义Hosts", "description": "修改系统hosts文件,加速网络访问。", "labels": "网络", - "version": "1.2", + "version": "1.2.1", "icon": "hosts.png", "author": "thsrite", "level": 1, "v2": true, "history": { + "v1.2.1": "更新依赖", "v1.2": "支持写入注释", "v1.1": "关闭插件时自动恢复系统hosts" } diff --git a/plugins/customhosts/__init__.py b/plugins/customhosts/__init__.py index ae0fe6a..ef9d556 100644 --- a/plugins/customhosts/__init__.py +++ b/plugins/customhosts/__init__.py @@ -18,7 +18,7 @@ class CustomHosts(_PluginBase): # 插件图标 plugin_icon = "hosts.png" # 插件版本 - plugin_version = "1.2" + plugin_version = "1.2.1" # 插件作者 plugin_author = "thsrite" # 作者主页 diff --git a/plugins/customhosts/requirements.txt b/plugins/customhosts/requirements.txt new file mode 100644 index 0000000..5885980 --- /dev/null +++ b/plugins/customhosts/requirements.txt @@ -0,0 +1 @@ +python-hosts~=1.1.2 \ No newline at end of file