feat: add dev.sh

This commit is contained in:
EstrellaXD
2023-06-02 20:04:41 +08:00
parent 88594588d2
commit 8c1f49cdc9
2 changed files with 24 additions and 1 deletions

1
.gitignore vendored
View File

@@ -173,7 +173,6 @@ cython_debug/
test.*
.run
/dev.sh
/src/templates/
/src/config/
/src/debuger.py

24
dev.sh Normal file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
# This script is used to run the development environment.
python3 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple install -r requirements.txt
cd src || exit
CONFIG_DIR="config"
if [ ! -d "$CONFIG_DIR" ]; then
echo "The directory '$CONFIG_DIR' is missing."
mkdir config
fi
VERSION_FILE="module/__version__.py"
if [ ! -f "$VERSION_FILE" ]; then
echo "The file '$VERSION_FILE' is missing."
echo "VERSION='DEV_VERSION'" >> "$VERSION_FILE"
fi
python3 main.py