game's version is now in definition.py

This commit is contained in:
raphael60650 2021-06-03 21:58:59 +02:00
parent e410cc990a
commit 3e56c029ca
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,6 @@
from cx_Freeze import setup, Executable from cx_Freeze import setup, Executable
import sys import sys
import json
include_files = [ include_files = [
"./icon.ico", "./icon.ico",
@ -53,10 +54,13 @@ options = {
} }
} }
with open("./version") as f:
version = json.load(f)
setup( setup(
options=options, options=options,
name='MKWF-Install', name='MKWF-Install',
version='0.3', version=version["version"],
url='https://github.com/Faraphel/MKWF-Install', url='https://github.com/Faraphel/MKWF-Install',
license='Apache-2.0', license='Apache-2.0',
author='Faraphel', author='Faraphel',

View file

@ -3,6 +3,7 @@ get_nodir = lambda file: file.split("/")[-1].split("\\")[-1]
get_extension = lambda file: file.split(".")[-1] get_extension = lambda file: file.split(".")[-1]
CREATE_NO_WINDOW = 0x08000000 CREATE_NO_WINDOW = 0x08000000
VERSION = "0.7"
def filecopy(src, dst): def filecopy(src, dst):
with open(src, "rb") as f1: with open(src, "rb") as f1: