Skip to content

Commit

Permalink
v0.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomiejduda committed Sep 2, 2021
1 parent 92dfab4 commit 2685c3f
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 24 deletions.
11 changes: 0 additions & 11 deletions GUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
'''

import os
import time
import sys
import struct
import tkinter as tk
Expand All @@ -21,12 +20,6 @@
import ea_image_logic
import logger

try:
import pyi_splash
except:
pass



# Program tested on Python 3.7.0

Expand Down Expand Up @@ -108,10 +101,6 @@ def __init__(self, master, in_VERSION_NUM):
logger.console_logger("GUI init...")
self.GUI_log_text = ""
self.GUI_logger("GUI init...")
try:
pyi_splash.close()
except:
pass
self.master = master
self.VERSION_NUM = in_VERSION_NUM
master.title("EA GRAPHICS MANAGER " + in_VERSION_NUM)
Expand Down
11 changes: 6 additions & 5 deletions MAKE_EXE.BAT
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ echo.

setlocal enabledelayedexpansion

set OUT_DIR="EA_Graphics_Manager_v0.7.2"
set OUT_DIR="EA_Graphics_Manager_v0.7.3"

echo STEP 1
rm -rf dist
Expand All @@ -20,14 +20,15 @@ rm -rf !OUT_DIR!
rm -rf main.spec



echo STEP 2
mkdir !OUT_DIR!
set PYTHONOPTIMIZE=1 && pyinstaller --onefile -i .\img\icon_bd.ico --splash .\img\loading.png --upx-dir c:\upx\ .\main.pyw
move .\dist\main.exe .\!OUT_DIR!\EA_Graphics_Manager.exe
xcopy ".\img" "!OUT_DIR!\img" /E /I
set PYTHONOPTIMIZE=1 && pyinstaller --onedir -i .\img\icon_bd.ico --noupx .\main.py
xcopy ".\dist\main" "!OUT_DIR!\bin" /E /I
xcopy ".\img" "!OUT_DIR!\bin\img" /E /I
copy ".\docs\readme.txt" ".\!OUT_DIR!\readme.txt"
copy ".\LICENSE" ".\!OUT_DIR!\license.txt"
copy ".\RUN_PROGRAM.BAT" ".\!OUT_DIR!\RUN_PROGRAM.BAT"


echo STEP 3
rm -rf dist
Expand Down
4 changes: 1 addition & 3 deletions RUN_PROGRAM.BAT
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ echo Executing program...
echo.
echo.

setlocal enabledelayedexpansion

start pythonw main.pyw
.\bin\main.exe

echo Ending program...
26 changes: 22 additions & 4 deletions docs/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,32 @@ Program has been created by Bartlomiej Duda.


2. Installation
Install Python 3.7 on your local computer, for example to the "C:\Python37" directory.
If you want to run this program from the build,
no installation is needed. Everything you need
is located in the "bin" directory.

If you want to run this program from the source code,
you need to install Python 3.7 on your local computer
first, for example to the "C:\Python37" directory.
Remember to add Python to PATH during installation.
Remember to include tcl/tk libraries during installation.
Then install all dependencies with "pip install" command.



3. Running the program
After installing Python 3.7, you will be able to run this program by double clicking on the EXE file.
You can simply run this program by double clicking
on the EXE file in the "bin" directory.

You can also double click on the RUN_PROGRAM.BAT script
to run the program from the parent directory.

You can execute this program in command line mode as well.
Type "main.exe --help" to get usage description.



4. Issues
This program is in an early stage of development,
so some functionalities may not work properly.

You can also download source code for this program and execute it by double clicking RUN_PROGRAM.BAT script.
This will work only if you have Python added to PATH and all dependencies installed on your computer.
4 changes: 3 additions & 1 deletion main.pyw → main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@
# v0.7.0 28.08.2021 Bartlomiej Duda Added stub for console mode, Enhanced ea_image_logic & GUI
# v0.7.1 29.08.2021 Bartlomiej Duda Enhanced ea_image_logic (added parsing for binary attachments), Enhanced GUI
# v0.7.2 01.09.2021 Bartlomiej Duda Enhanced ea_image_logic & GUI (added exporting raw data)
# v0.7.3 02.09.2021 Bartlomiej Duda Updated "make_exe" script, Updated readme file

VERSION_NUM = "v0.7.2"
VERSION_NUM = "v0.7.3"

import ea_image_logic
import tkinter as tk
Expand Down Expand Up @@ -75,6 +76,7 @@ def main():
#GUI mode
root = tk.Tk()
ea_man_gui = GUI.EA_MAN_GUI(root, VERSION_NUM)
root.lift()
center_tk_window.center_on_screen(root)
root.mainloop()

Expand Down

0 comments on commit 2685c3f

Please sign in to comment.