From 3e56c029ca00cd133d225143718456961f918983 Mon Sep 17 00:00:00 2001 From: raphael60650 Date: Thu, 3 Jun 2021 21:58:59 +0200 Subject: [PATCH] game's version is now in definition.py --- setup.py | 6 +++++- source/definition.py | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6de955f..1a7de35 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,6 @@ from cx_Freeze import setup, Executable import sys +import json include_files = [ "./icon.ico", @@ -53,10 +54,13 @@ options = { } } +with open("./version") as f: + version = json.load(f) + setup( options=options, name='MKWF-Install', - version='0.3', + version=version["version"], url='https://github.com/Faraphel/MKWF-Install', license='Apache-2.0', author='Faraphel', diff --git a/source/definition.py b/source/definition.py index ccaedf6..4fbc27f 100644 --- a/source/definition.py +++ b/source/definition.py @@ -3,6 +3,7 @@ get_nodir = lambda file: file.split("/")[-1].split("\\")[-1] get_extension = lambda file: file.split(".")[-1] CREATE_NO_WINDOW = 0x08000000 +VERSION = "0.7" def filecopy(src, dst): with open(src, "rb") as f1: