File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Upload Python Package
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ deploy :
10+
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+ - name : Set up Python
16+ uses : actions/setup-python@v5
17+ with :
18+ python-version : ' 3.9'
19+ - name : Install dependencies
20+ run : |
21+ make reqs
22+ - name : Lint code
23+ run : |
24+ make lint
25+ - name : Build and publish python package
26+ run : |
27+ make build
28+ make publish
29+ env :
30+ TWINE_USERNAME : __token__
31+ TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
Original file line number Diff line number Diff line change 11# CDMClient
22CDM - Centralized Download Manager Client
3+
4+ ## Installation
5+
6+ ### Install/Upgrade package
7+ ``` shell
8+ python3 -m pip install --upgrade CDMClient --user
9+ ```
10+
11+ ### Create service
12+ ``` shell
13+ echo " [Unit]
14+ Description=cdm-client service
15+ After=multi-user.target
16+ Conflicts=getty@tty1.service
17+ [Service]
18+ User=${USER}
19+ Type=simple
20+ Environment=" LC_ALL=C.UTF-8"
21+ Environment=" LANG=C.UTF-8"
22+ ExecStart=${HOME} /.local/bin/cdm-client
23+ Restart=on-failure
24+ RestartSec=3
25+ [Install]
26+ WantedBy=multi-user.target" | sudo tee /etc/systemd/system/cdm-client.service
27+ ```
28+ ``` shell
29+ sudo systemctl daemon-reload
30+ sudo systemctl enable cdm-client.service
31+ sudo systemctl start cdm-client.service
32+ ```
33+
34+ ## Configuartion
35+ Config file path: ``` ~/.config/cdm_client/config.ini ```
36+
37+ This file automatically generated when the service starts. See the example below.
38+ ``` ini
39+ [connection]
40+ server_host =
41+ api_key =
42+ rpc_user =
43+ rpc_password =
44+ ```
45+
46+ ## Check logs
47+ ``` shell
48+ journalctl -fu cdm-client
49+ ```
You can’t perform that action at this time.
0 commit comments