Skip to content

Commit 0d0c819

Browse files
committed
Added Success message in StopApp.bat
Made setup.py only include the needed packages
1 parent a3f7481 commit 0d0c819

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

StopApp.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@echo off
2+
3+
tskill twentytwentytwenty && echo Success! Now you shouldn't get anymore 20-20-20s
4+
5+
timeout /t 5

setup.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
# This script is only used to turn the main.py script into a windows executable, by running "python setup.py build"
22

33
from cx_Freeze import setup, Executable
4+
import pkgutil
45

5-
files = []
6+
files = ["StopApp.bat", "Resources"]
7+
includes = ["encodings", "collections", "importlib", "pygame", "win32com", "os", "time"]
8+
excludes = [i.name for i in list(pkgutil.iter_modules()) if i.ispkg and i.name not in includes]
69

710
target = Executable(
11+
target_name="TwentyTwentyTwenty.exe",
812
script="main.py",
913
base="Win32GUI"
1014
)
1115
setup(
12-
name="202020",
16+
name="20-20-20",
1317
version="1.0",
1418
author="ZiyadCodes, https://ziyadcodes.000webhostapp.com",
1519
executables=[target],
16-
options={'build.exe': {'include_files': files}},
17-
description="202020"
20+
options={"build_exe": {"include_files": files, "excludes": excludes, "optimize": 1}}, # Try optimize 2 first
21+
description="20-20-20"
1822
)

0 commit comments

Comments
 (0)