Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Latest commit

 

History

History
71 lines (42 loc) · 1.41 KB

windows-deployment.md

File metadata and controls

71 lines (42 loc) · 1.41 KB

Windows个人电脑部署

优势:

  • 没有开销
  • 部署简单

缺点:

  • 得一直开着电脑

安装Python

download python

python.org 下载最新版本即可

安装时记得勾选添加到环境变量PATH.
没有勾选也没关系, 可以查一下怎么添加。

安装Git

download git

git-scm.com 下载最新版本即可

安装时全部选择默认就可以了,一直Next

克隆仓库

安装好Git后,右键菜单里应该添加了一个Git Bash here, 在合适的文件夹里点击。

黑框框出现后,输入命令并回车

git clone https://github.com/yaaprogrammer/zzu-helper.git

安装依赖

在项目文件夹里打开cmdpowershell等命令行工具,输入

pip install -r requirements.txt

配置文件

新建config_custom.txt, 输入以下内容

smtp:
    enable: false
zzu:
    username: xxxxxxx # 你的学号
    password: xxxxxxx # 你的密码

保存,修改扩展名为yml

测试

在项目文件夹里打开cmdpowershell等命令行工具,输入python main.py, 测试程序是否正常工作

开启邮件服务(可选)

邮件服务配置

设置定时任务(可选)

Windows 设置定时任务 -知乎