mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-01 18:28:27 +02:00
fixed source to convert to .exe file
This commit is contained in:
parent
1d866f8db6
commit
b097905da4
4 changed files with 11 additions and 4 deletions
|
@ -1 +1,2 @@
|
||||||
pillow
|
pillow==9.4.0
|
||||||
|
cx-Freeze==6.12.0
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -25,7 +25,7 @@ options = {
|
||||||
setup(
|
setup(
|
||||||
options=options,
|
options=options,
|
||||||
name='MKWF-Install',
|
name='MKWF-Install',
|
||||||
version=".".join(source.__version__),
|
version=".".join([str(v) for v in source.__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',
|
||||||
|
@ -33,7 +33,7 @@ setup(
|
||||||
description='Mario Kart Wii Mod Installer.',
|
description='Mario Kart Wii Mod Installer.',
|
||||||
executables=[
|
executables=[
|
||||||
Executable(
|
Executable(
|
||||||
"./main.pyw",
|
"main.py",
|
||||||
icon="./assets/icon.ico",
|
icon="./assets/icon.ico",
|
||||||
base="win32gui",
|
base="win32gui",
|
||||||
target_name="MKWF-Install.exe",
|
target_name="MKWF-Install.exe",
|
||||||
|
|
|
@ -517,7 +517,10 @@ class SelectPack(ttk.Frame):
|
||||||
"""
|
"""
|
||||||
self.packs = []
|
self.packs = []
|
||||||
|
|
||||||
for pack in filter(lambda pack: self.is_valid_pack(pack), Path("./Pack/").iterdir()):
|
pack_directory: Path = Path("./Pack/")
|
||||||
|
pack_directory.mkdir(exist_ok=True)
|
||||||
|
|
||||||
|
for pack in filter(lambda pack: self.is_valid_pack(pack), pack_directory.iterdir()):
|
||||||
self.packs.append(pack)
|
self.packs.append(pack)
|
||||||
|
|
||||||
self.combobox["values"] = [pack.name for pack in self.packs]
|
self.combobox["values"] = [pack.name for pack in self.packs]
|
||||||
|
@ -529,7 +532,10 @@ class SelectPack(ttk.Frame):
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
index = index if index is not None else self.combobox.current()
|
index = index if index is not None else self.combobox.current()
|
||||||
|
|
||||||
|
if len(self.packs) <= index: return
|
||||||
pack = self.packs[index]
|
pack = self.packs[index]
|
||||||
|
|
||||||
self.set_path(pack)
|
self.set_path(pack)
|
||||||
self.combobox.set(pack.name)
|
self.combobox.set(pack.name)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue