chore: 整理代码逻辑,留出下载字幕的入口

This commit is contained in:
amtoaer
2023-12-05 23:59:46 +08:00
parent 46d1810e7c
commit de6eaeb4a6
5 changed files with 104 additions and 50 deletions

View File

@@ -1,4 +1,4 @@
.PHONY: install fmt start-daemon start-once
.PHONY: install fmt start-daemon start-once db-init db-migrate db-upgrade sync-conf
install:
@echo "Installing dependencies..."
@@ -22,4 +22,10 @@ db-migrate:
@poetry run aerich migrate
db-upgrade:
@poetry run aerich upgrade
@poetry run aerich upgrade
sync-conf:
@echo "Syncing config..."
@cp ${CONFIG_SRC} ./config/
@cp ${DB_SRC} ./data/
@echo "Done."