mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-05-10 17:42:55 +08:00
40 lines
716 B
Makefile
40 lines
716 B
Makefile
.PHONY: install fmt start-daemon start-once db-init db-migrate db-upgrade sync-conf release
|
|
|
|
install:
|
|
@echo "Installing dependencies..."
|
|
@poetry install --no-root
|
|
|
|
fmt:
|
|
@echo "Formatting..."
|
|
@poetry run ruff format .
|
|
@poetry run ruff check --fix .
|
|
|
|
start-daemon:
|
|
@poetry run python entry.py
|
|
|
|
start-once:
|
|
@poetry run python entry.py --once
|
|
|
|
db-init:
|
|
@poetry run aerich init-db
|
|
|
|
db-migrate:
|
|
@poetry run aerich migrate
|
|
|
|
db-upgrade:
|
|
@poetry run aerich upgrade
|
|
|
|
sync-conf:
|
|
@echo "Syncing config..."
|
|
@cp ${CONFIG_SRC} ./config/
|
|
@cp ${DB_SRC} ./data/
|
|
@echo "Done."
|
|
|
|
release:
|
|
@echo "Releasing..."
|
|
@git checkout main
|
|
@bump-my-version bump patch
|
|
@git push origin main
|
|
@git push origin --tags
|
|
@echo "Done."
|