TTB-Network / python-openbmclapi

The Python version of OpenBMCLAPI.
https://python-openbmclapi.ttb-network.top/
MIT License
18 stars 3 forks source link

:sparkles: 添加自动更新 #48

Open Tianpao512 opened 5 months ago

Tianpao512 commented 5 months ago

建议描述 更新时能自动更新

可行的解决方案 json 存版本和 githubapi 对一下就行

其他 任何其他的内容。

sciencekiller commented 5 months ago

没必要吧,像我一样写个脚本启动的时候pull就行

sciencekiller commented 5 months ago

start.sh

#!/bin/bash
#update
./update.sh
#start alist service
systemctl start alist
#run venv environment
source venv/bin/activate
#change directory to work root directory
cd python-openbmclapi
#Run program
python3 main.py

update.sh

#!/bin/bash
#Update
cd python-openbmclapi
git init
git pull
cd ..
#Start venv environment
#source venv/bin/activate
#Install dependences
#cd python-openbmclapi
#pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple