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(
|
||||
options=options,
|
||||
name='MKWF-Install',
|
||||
version=".".join(source.__version__),
|
||||
version=".".join([str(v) for v in source.__version__]),
|
||||
url='https://github.com/Faraphel/MKWF-Install',
|
||||
license='Apache-2.0',
|
||||
author='Faraphel',
|
||||
|
@ -33,7 +33,7 @@ setup(
|
|||
description='Mario Kart Wii Mod Installer.',
|
||||
executables=[
|
||||
Executable(
|
||||
"./main.pyw",
|
||||
"main.py",
|
||||
icon="./assets/icon.ico",
|
||||
base="win32gui",
|
||||
target_name="MKWF-Install.exe",
|
||||
|
|
|
@ -517,7 +517,10 @@ class SelectPack(ttk.Frame):
|
|||
"""
|
||||
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.combobox["values"] = [pack.name for pack in self.packs]
|
||||
|
@ -529,7 +532,10 @@ class SelectPack(ttk.Frame):
|
|||
:return:
|
||||
"""
|
||||
index = index if index is not None else self.combobox.current()
|
||||
|
||||
if len(self.packs) <= index: return
|
||||
pack = self.packs[index]
|
||||
|
||||
self.set_path(pack)
|
||||
self.combobox.set(pack.name)
|
||||
|
||||
|
|
Loading…
Reference in a new issue