Skip to content

Commit

Permalink
v0.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomiejduda committed Mar 1, 2022
1 parent d568d34 commit dd83156
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 70 deletions.
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ __pycache__/*
venv/
venv/*

idea/
idea/*
.idea/
.idea/*

dist/
dist/*
dist/*

build/
build/*
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@
# v0.8.0 05.09.2021 Bartlomiej Duda Added preview for binary attachments
# v0.9.0 12.09.2021 Bartlomiej Duda Added experimental support for imgage type "2" conversion and preview
# v0.10.0 01.03.2022 Bartlomiej Duda Project cleanup, migration to PyCharm + venv
# v0.10.1 01.03.2022 Bartlomiej Duda Updated make_exe script
41 changes: 0 additions & 41 deletions MAKE_EXE.BAT

This file was deleted.

12 changes: 0 additions & 12 deletions RUN_PROGRAM.BAT

This file was deleted.

2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# Program tested on Python 3.7.0


VERSION_NUM = "v0.10.0"
VERSION_NUM = 'v0.10.1'


def main():
Expand Down
19 changes: 19 additions & 0 deletions make_exe.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

:: BAT script for making exe file
:: Created on 01.03.2022 by Bartlomiej Duda


@ECHO OFF
if exist dist (rd /s /q dist)
if exist build (rd /s /q build)

echo Activating venv...
CALL .\venv\Scripts\activate.bat

echo Executing cxfreeze...
python setup.py build


if exist __pycache__ (rd /s /q __pycache__)

echo BUILD SUCCESSFUL!
13 changes: 0 additions & 13 deletions make_exe2.bat

This file was deleted.

20 changes: 20 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# import sys
from cx_Freeze import setup, Executable
from main import VERSION_NUM

build_options = {"packages": [], "excludes": []}

# base = None
# if sys.platform == "win32":
# base = "Win32GUI"
base = "Console"

executables = [Executable("main.py", base=base, target_name="EA-Graphics-Manager-" + VERSION_NUM + ".exe")]

setup(
name="EA-Graphics-Manager " + VERSION_NUM,
version=VERSION_NUM,
description="Tool for managing EA graphics",
options={"build_exe": build_options},
executables=executables,
)

0 comments on commit dd83156

Please sign in to comment.