yihong0618 / tg_bot_collections

collections of yihong0618's telegram bot
MIT License
561 stars 109 forks source link

feat: add custom python version for setup.sh #16

Closed jinwyp closed 9 months ago

jinwyp commented 9 months ago

This PR based on https://github.com/yihong0618/tg_bot_collections/issues/14

  1. add custom python path (python version) to env 增加 Python_Bin_Path 变量用于切换 已安装的python 不同的版本. 推荐安装python3.10

  2. add run.sh script to run without systemd service 增加 run.sh 功能为不使用 systemd.service 方式的命令行方式运行. 包括安装python虚拟环境 方便调试

其他问题: 发现setup.sh 和 .env.example 文件 有时会从LF 换行 变成 CRLF 换行模式 导致脚本在linux 无法运行 需要注意编辑器设置 可以在项目增加一个 .editorconfig 配置 指定换行模式为LF

yihong0618 commented 9 months ago

can you combine these two file into one?