2026-02-02 13:36:57 +08:00

59 lines
970 B
Markdown

# {{ cookiecutter.project_name }}
[TOC]
作者: {{ cookiecutter.author_name }}
版本: {{ cookiecutter.version }}
## 运行项目
uv 环境
```shell
uv run serve
```
纯 python 环境
```shell
python -m venv .venv
source .venv/bin/activate # windwows 命令为 .venv\Scripts\activate
pip install -r requirements.txt
pip install -e .
serve
```
## 打包项目
uv 环境
```shell
uv run build
```
纯 python 环境
```shell
source .venv/bin/activate # windwows 命令为 .venv\Scripts\activate
build
```
打包出来的文件在 build 目录下
```text
build
├── resources
│   ├── {{ cookiecutter.project_name }}.ico
│   ├── plugins.mbank
│   └── app.mbank
├── config.toml
├── db.sqlite3
└── {{ cookiecutter.project_name }} # windows {{ cookiecutter.project_name }}.exe
```
运行打包后的项目
```shell
cd build
{{ cookiecutter.project_name }} # windows {{ cookiecutter.project_name }}.exe
```