<gh_stars>1-10
from cx_Freeze import setup, Executable
import sys
import json

include_files = [
    "./icon.ico",
    "./LICENSE",
    "./README.md",
    "./version",
    "./ct_config.json",
    "./convert_file.json",
    "./translation.json",
    "./fs.json",

    "./tools",
    "./source",

    # ("./file/Track-WU8", "./file/Track-WU8"),
    ("./file/cup_icon", "./file/cup_icon"),
    ("./file/img_desc", "./file/img_desc"),
    ("./file/video.thp", "./file/video.thp"),
    ("./file/SuperMario256.ttf", "./file/SuperMario256.ttf"),

    ("./file/Back.brctr", "./file/Back.brctr"),
    ("./file/cup_icon_64x64_common.brlyt", "./file/cup_icon_64x64_common.brlyt"),
    ("./file/CupSelectCup.brctr", "./file/CupSelectCup.brctr"),
    ("./file/CourseSelectCup.brctr", "./file/CourseSelectCup.brctr"),
    ("./file/course_name.brlyt", "./file/course_name.brlyt"),
    ("./file/lecode-PAL.bin", "./file/lecode-PAL.bin"),
    ("./file/lecode-USA.bin", "./file/lecode-USA.bin"),
    ("./file/lecode-JAP.bin", "./file/lecode-JAP.bin"),
    ("./file/lecode-KOR.bin", "./file/lecode-KOR.bin"),
    ("./file/itemBoxNiseRtpa.brres", "./file/itemBoxNiseRtpa.brres"),
    ("./file/lpar-default.txt", "./file/lpar-default.txt"),
    ("./file/RKRace.breff", "./file/RKRace.breff"),

    ("./file/tt_hatena_64x64.tpl.png", "./file/tt_hatena_64x64.tpl.png"),
    ("./file/tt_obi_bottom_curve_000.tpl.png", "./file/tt_obi_bottom_curve_000.tpl.png"),
    ("./file/tt_obi_bottom_left_000.tpl.png", "./file/tt_obi_bottom_left_000.tpl.png"),
    ("./file/tt_obi_bottom_right_000.tpl.png", "./file/tt_obi_bottom_right_000.tpl.png"),
    ("./file/tt_obi_check_000.tpl.png", "./file/tt_obi_check_000.tpl.png"),
    ("./file/tt_obi_top_curve_000.tpl.png", "./file/tt_obi_top_curve_000.tpl.png"),
    ("./file/tt_obi_top_left_000.tpl.png", "./file/tt_obi_top_left_000.tpl.png"),
    ("./file/tt_obi_top_right_000.tpl.png", "./file/tt_obi_top_right_000.tpl.png"),
    ("./file/savebanner.tpl.png", "./file/savebanner.tpl.png"),

    sys.exec_prefix + "\\DLLs\\tcl86t.dll",
    sys.exec_prefix + "\\DLLs\\tk86t.dll",
]

options = {
    "build_exe": {
        "include_files": include_files,
        "includes": ["tkinter", "requests", "PIL"],
        "include_msvcr": True,
        "packages": ["tkinter"],
        "excludes": ["source"],
    }
}

with open("./version") as f:
    version = json.load(f)

setup(
    options=options,
    name='MKWF-Install',
    version=version["version"],
    url='https://github.com/Faraphel/MKWF-Install',
    license='Apache-2.0',
    author='Faraphel',
    author_email='<EMAIL>',
    description='Installateur pour <NAME>.',
    executables=[Executable("./main.pyw",
                            icon="./icon.ico",
                            base="win32gui",
                            target_name="MKWF-Install.exe",
                            shortcut_name="MKWF-Install",
                            shortcut_dir="DesktopFolder")],
)

from cx_Freeze import setup, Executable
import sys
import json

include_files = [
    "./icon.ico",
    "./LICENSE",
    "./README.md",
    "./version",
    "./ct_config.json",
    "./convert_file.json",
    "./translation.json",
    "./fs.json",

    "./tools",
    "./source",

    # ("./file/Track-WU8", "./file/Track-WU8"),
    ("./file/cup_icon", "./file/cup_icon"),
    ("./file/img_desc", "./file/img_desc"),
    ("./file/video.thp", "./file/video.thp"),
    ("./file/SuperMario256.ttf", "./file/SuperMario256.ttf"),

    ("./file/Back.brctr", "./file/Back.brctr"),
    ("./file/cup_icon_64x64_common.brlyt", "./file/cup_icon_64x64_common.brlyt"),
    ("./file/CupSelectCup.brctr", "./file/CupSelectCup.brctr"),
    ("./file/CourseSelectCup.brctr", "./file/CourseSelectCup.brctr"),
    ("./file/course_name.brlyt", "./file/course_name.brlyt"),
    ("./file/lecode-PAL.bin", "./file/lecode-PAL.bin"),
    ("./file/lecode-USA.bin", "./file/lecode-USA.bin"),
    ("./file/lecode-JAP.bin", "./file/lecode-JAP.bin"),
    ("./file/lecode-KOR.bin", "./file/lecode-KOR.bin"),
    ("./file/itemBoxNiseRtpa.brres", "./file/itemBoxNiseRtpa.brres"),
    ("./file/lpar-default.txt", "./file/lpar-default.txt"),
    ("./file/RKRace.breff", "./file/RKRace.breff"),

    ("./file/tt_hatena_64x64.tpl.png", "./file/tt_hatena_64x64.tpl.png"),
    ("./file/tt_obi_bottom_curve_000.tpl.png", "./file/tt_obi_bottom_curve_000.tpl.png"),
    ("./file/tt_obi_bottom_left_000.tpl.png", "./file/tt_obi_bottom_left_000.tpl.png"),
    ("./file/tt_obi_bottom_right_000.tpl.png", "./file/tt_obi_bottom_right_000.tpl.png"),
    ("./file/tt_obi_check_000.tpl.png", "./file/tt_obi_check_000.tpl.png"),
    ("./file/tt_obi_top_curve_000.tpl.png", "./file/tt_obi_top_curve_000.tpl.png"),
    ("./file/tt_obi_top_left_000.tpl.png", "./file/tt_obi_top_left_000.tpl.png"),
    ("./file/tt_obi_top_right_000.tpl.png", "./file/tt_obi_top_right_000.tpl.png"),
    ("./file/savebanner.tpl.png", "./file/savebanner.tpl.png"),

    sys.exec_prefix + "\\DLLs\\tcl86t.dll",
    sys.exec_prefix + "\\DLLs\\tk86t.dll",
]

options = {
    "build_exe": {
        "include_files": include_files,
        "includes": ["tkinter", "requests", "PIL"],
        "include_msvcr": True,
        "packages": ["tkinter"],
        "excludes": ["source"],
    }
}

with open("./version") as f:
    version = json.load(f)

setup(
    options=options,
    name='MKWF-Install',
    version=version["version"],
    url='https://github.com/Faraphel/MKWF-Install',
    license='Apache-2.0',
    author='Faraphel',
    author_email='<EMAIL>',
    description='Installateur pour <NAME>.',
    executables=[Executable("./main.pyw",
                            icon="./icon.ico",
                            base="win32gui",
                            target_name="MKWF-Install.exe",
                            shortcut_name="MKWF-Install",
                            shortcut_dir="DesktopFolder")],
)
# ("./file/Track-WU8", "./file/Track-WU8"),