hcatitles/README.md

64 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2024-05-24 18:04:12 -06:00
# hcatitles
This program will update the png file found at `D:\OBS Assets\Overlays\title.png`
## Setting up the build environment
Making the assumption that python is installed in `C:\Program Files\Python39` and Develmpent is being done under `D:\Development`
2024-05-24 18:08:16 -06:00
Pull a copy of this project from git:
2024-05-24 18:04:12 -06:00
```
D:\
cd \development
git clone https://git.elder-geek.net/Harvest/hcatitles.git
```
Then setup this foulder with a virtual environment:
```
cd hcatitles
& "C:\Program Files\Python39\python" -m venv venv
```
2024-05-24 18:10:45 -06:00
Activate the virtual enviroment:
2024-05-24 18:04:12 -06:00
```
2024-05-24 18:08:16 -06:00
venv\Script\activate
```
2024-05-24 18:04:12 -06:00
Update `pip `and install requirments:
```
python -m pip install --upgrade pip
pip install -r requisments.txt
```
2024-05-24 18:10:45 -06:00
Testing code after making edits:
2024-05-24 18:04:12 -06:00
```
python hcatitiles.py
```
To create an executable in `D:\Development\hcatitles\dist`:
```
pyinstaller hcatitles.spec
```
2024-05-24 18:08:16 -06:00
## To Activate the virtual enviroment from a new DOS prompt
```
D:\
cd \development\hcatitles
venv\Scripts\activate
```
2024-05-24 18:04:12 -06:00
When done working in the virtual enviroment:
```
deactivate
```
## First time run of pyinstaller to generate hcatitles.spec
2024-05-24 18:10:45 -06:00
Windows uses `^` to continues a command on the next line.
2024-05-24 18:04:12 -06:00
```
pyinstaller --onefile --windowed --icon projector.ico ^
--add-data "blank_title.png:." ^
--add-data "tahoma.ttf:." ^
--add-data "tahomabd.ttf:." ^
--add-data "projector.ico:." ^
hcatitles.py
```