Compare commits
3 commits
29aa548e54
...
fd98c9a244
| Author | SHA1 | Date | |
|---|---|---|---|
| fd98c9a244 | |||
| c32fd865ba | |||
| 39e3085586 |
5 changed files with 38 additions and 11 deletions
10
.forgejo/workflows/Dockerfile
Normal file
10
.forgejo/workflows/Dockerfile
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
FROM ubuntu:latest
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install wine -y
|
||||||
|
RUN apt-get install wget -y
|
||||||
|
RUN dpkg --add-architecture i386 && apt-get update && apt-get install wine32:i386 -y
|
||||||
|
RUN wget https://www.python.org/ftp/python/3.12.2/python-3.12.2-amd64.exe
|
||||||
|
RUN apt-get install xorg xvfb xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic -y
|
||||||
|
RUN xvfb-run wine python-3.12.2-amd64.exe /quiet /i InstallAllUsers=1
|
||||||
|
RUN cd ~/.wine/drive_c/Program\ Files/Python312 && wine python.exe Scripts/pip.exe install pyinstaller
|
||||||
|
RUN apt-get install git -y
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
upload-release:
|
compile-exe:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: git.venreys-lair.xyz/venrey/pythoncrosscompile:latest
|
image: git.venreys-lair.xyz/venrey/pythoncrosscompile:latest
|
||||||
|
|
@ -8,9 +8,11 @@ jobs:
|
||||||
- run: mkdir -p /dist/release
|
- run: mkdir -p /dist/release
|
||||||
- run: apt-get install zip git -y
|
- run: apt-get install zip git -y
|
||||||
- run: git clone https://git.venreys-lair.xyz/Venrey/Eddie-Roden-Slide-Tool .
|
- run: git clone https://git.venreys-lair.xyz/Venrey/Eddie-Roden-Slide-Tool .
|
||||||
- run: wine ~/.wine/drive_c/Program\ Files/Python312/Scripts/pyinstaller.exe --onefile main.py
|
- run: wine ~/.wine/drive_c/Program\ Files/Python312/python.exe -m pip install pillow openpyxl matplotlib
|
||||||
- run: mv ./dist/main.exe ./ImageGen.exe
|
- run: wine ~/.wine/drive_c/Program\ Files/Python312/Scripts/pyinstaller.exe --clean --collect-all pillow --collect-all openpyxl --collect-all matplotlib main.py
|
||||||
- run: zip /dist/release/Winodws.zip ./fonts ./templets ./Numbers.xlsx ./ImageGen.exe
|
- run: mv ./dist/main/main.exe ./ImageGen.exe
|
||||||
|
- run: mv ./dist/main/_internal ./
|
||||||
|
- run: zip -r /dist/release/Winodws.zip ./fonts ./templets ./Numbers.xlsx ./_internal ./ImageGen.exe
|
||||||
- uses: actions/forgejo-release@v2
|
- uses: actions/forgejo-release@v2
|
||||||
with:
|
with:
|
||||||
direction: upload
|
direction: upload
|
||||||
|
|
|
||||||
10
README.md
10
README.md
|
|
@ -1,8 +1,8 @@
|
||||||
# Auto Slide Tool
|
# Auto Slide Tool
|
||||||
This tool automaticly composites graphs onto your slides for you. Just edit the **Numbers.xlsx** file and run the script
|
This tool automaticly composites graphs onto your slides for you. Just edit the **Numbers.xlsx** file and run the script
|
||||||
|
|
||||||
## Usage (Python must be installed - 3.12.4)
|
## Usage (Reqires [Microsoft Visual C++ Redistributable](https://aka.ms/vs/17/release/vc_redist.x64.exe))
|
||||||
1. Download tool and extract the files
|
1. Download [latest release](https://git.venreys-lair.xyz/Venrey/Eddie-Roden-Slide-Tool/releases/tag/latest) (**windows.zip**)
|
||||||
2. Enter folder
|
2. Extract folder
|
||||||
3. Click run.bat
|
3. Edit **Numbers.xlsx**, then click ImageGen.exe
|
||||||
4. check the **gen** folder for the generated slides
|
4. Check the **gen** folder for the generated slides
|
||||||
|
|
|
||||||
17
reqirements.txt
Normal file
17
reqirements.txt
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
altgraph==0.17.4
|
||||||
|
contourpy==1.2.1
|
||||||
|
cycler==0.12.1
|
||||||
|
et-xmlfile==1.1.0
|
||||||
|
fonttools==4.53.0
|
||||||
|
kiwisolver==1.4.5
|
||||||
|
matplotlib==3.9.0
|
||||||
|
numpy==2.0.0
|
||||||
|
openpyxl==3.1.4
|
||||||
|
packaging==24.0
|
||||||
|
pillow==10.3.0
|
||||||
|
pyinstaller==6.9.0
|
||||||
|
pyinstaller-hooks-contrib==2024.7
|
||||||
|
pyparsing==3.1.2
|
||||||
|
python-dateutil==2.9.0.post0
|
||||||
|
setuptools==69.5.1
|
||||||
|
six==1.16.0
|
||||||
2
run.bat
2
run.bat
|
|
@ -1,2 +0,0 @@
|
||||||
pip install pillow openpyxl matplotlib
|
|
||||||
python main.py
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue