feat: 支持基于语义化版本的自动更新

This commit is contained in:
Rock Chin
2023-03-05 11:56:40 +08:00
parent 79e970c4c3
commit 792366e221
4 changed files with 93 additions and 26 deletions

View File

@@ -314,10 +314,14 @@ if __name__ == '__main__':
if not os.path.exists('banlist.py'):
shutil.copy('banlist-template.py', 'banlist.py')
# 检查是否有sensitive.json,
# 检查是否有sensitive.json
if not os.path.exists("sensitive.json"):
shutil.copy("sensitive-template.json", "sensitive.json")
# 检查temp目录
if not os.path.exists("temp/"):
os.mkdir("temp/")
if len(sys.argv) > 1 and sys.argv[1] == 'init_db':
init_db()
sys.exit(0)