Skip to content

Commit 10ecbd8

Browse files
authored
Merge pull request #1
frontend_gui
2 parents 112c51a + 0755a4b commit 10ecbd8

File tree

12 files changed

+606
-30
lines changed

12 files changed

+606
-30
lines changed

.github/workflows/build_executable.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,20 @@ jobs:
2525
pyinstaller --onefile --name="flatc_deserializer" --console --icon=images\flatbuffers-logo-clean.png --add-data="images:images" --add-data="localization:localization" flatc_deserializer.py
2626
pyinstaller --onefile --name="flatc_downloader" --console --icon=images\flatbuffers-downloader-logo-clean.png --add-data="images:images" --add-data="localization:localization" flatc_downloader.py
2727
pyinstaller --onefile --name="flatc_deserializer_batch" --console --icon=images\flatbuffers-batch-logo-clean.png --add-data="images:images" --add-data="localization:localization" flatc_deserializer_batch.py
28-
- name: Move Deserializer and Downloader Executables from dist to root directory and delete dist directory
28+
- name: Install additional GUI requirements
29+
run: |
30+
pip install -r requirements_frontend.txt
31+
pip install pywinstyles
32+
- name: Run PyInstaller for GUI
33+
run: |
34+
set PYTHONOPTIMIZE=2
35+
pyinstaller --onefile --noconsole --name="flatc_deserializer_frontend" --console --hiddenimport pywinstyles --icon=images\flatbuffers-logo-clean.png --add-data="images:images" --add-data="localization:localization" flatc_deserializer_frontend.py
36+
- name: Move Executables from dist to root directory and delete dist directory
2937
run: |
3038
move dist\flatc_deserializer.exe .
3139
move dist\flatc_downloader.exe .
3240
move dist\flatc_deserializer_batch.exe .
41+
move dist\flatc_deserializer_frontend.exe .
3342
rd /s /q dist
3443
shell: cmd
3544
- name: Create Automatic Windows Release
@@ -42,4 +51,5 @@ jobs:
4251
files: |
4352
flatc_deserializer.exe
4453
flatc_downloader.exe
45-
flatc_deserializer_batch.exe
54+
flatc_deserializer_batch.exe
55+
flatc_deserializer_frontend.exe

.github/workflows/build_executable_nuitka.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,29 @@ jobs:
5252
localization=localization
5353
images=images
5454
windows-icon-from-ico: images/flatbuffers-batch-logo-clean.png
55+
- name: Install additional GUI requirements
56+
run: |
57+
pip install -r requirements_frontend.txt
58+
pip install pywinstyles
59+
- name: Run Nuitka for GUI
60+
uses: Nuitka/Nuitka-Action@main
61+
with:
62+
nuitka-version: main
63+
script-name: flatc_deserializer_frontend.py
64+
mode: app
65+
windows-console-mode: disable
66+
enable-plugins: tk-inter
67+
include-package: pywinstyles
68+
include-data-dir: |
69+
localization=localization
70+
images=images
71+
windows-icon-from-ico: images/flatbuffers-logo-clean.png
5572
- name: Move Executables from build to root directory
5673
run: |
5774
move build\flatc_deserializer.exe .
5875
move build\flatc_deserializer_batch.exe .
5976
move build\flatc_downloader.exe .
77+
move build\flatc_deserializer_frontend.exe .
6078
rd /s /q build
6179
shell: cmd
6280
- name: Create Automatic Windows Release
@@ -69,4 +87,5 @@ jobs:
6987
files: |
7088
flatc_deserializer.exe
7189
flatc_deserializer_batch.exe
72-
flatc_downloader.exe
90+
flatc_downloader.exe
91+
flatc_deserializer_frontend.exe

README.MD

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
# Flatbuffers Deserializer
2-
Set of console tools for batch deserialization of Flatbuffers binary files using pre-defined schemas and downloading latest version of Flatbuffers schema compiler written in Python.
2+
Set of console tools and single combined GUI for the following:
3+
1. Downloading latest version of Flatbuffers schema compiler.
4+
2. Batch deserializing binary Flatbuffers files using imported schemas.
5+
36
## Requirements:
47
- [Python 3.11+](https://www.python.org/)
58
- [Pillow](https://pypi.org/project/pillow/)
69
- [tqdm](https://pypi.org/project/tqdm/)
710
- [i18nice[YAML]](https://pypi.org/project/i18nice/)
11+
### GUI only:
12+
- [customtkinter](https://pypi.org/project/customtkinter/)
13+
- [CTkMenuBar](https://pypi.org/project/CTkMenuBar/)
14+
- [CTkMessagebox](https://pypi.org/project/CTkMessagebox/)
815
## Latest Windows releases:
916
- [PyInstaller](https://github.com/Shararamosh/flatc_deserializer/releases/tag/latest)
1017
- [Nuitka](https://github.com/Shararamosh/flatc_deserializer/releases/tag/latest-nuitka)

0 commit comments

Comments
 (0)