Added No UI Build

This commit is contained in:
Surferlul 2020-12-05 15:56:30 +01:00
parent 5d9aa251e2
commit 9b7f11d8cc
3 changed files with 28 additions and 3 deletions

View File

@ -1,8 +1,13 @@
from subprocess import call
from subprocess import call, Popen, DETACHED_PROCESS
from shutil import rmtree
from os.path import isdir
if isdir(".\\build"):
if isdir(".\\build"):
print("Removing .\\build")
rmtree(".\\build")
if isdir(".\\noui_build"):
print("Removing .\\noui_build")
rmtree(".\\noui_build")
Popen(["powershell", """python3 noui_setup.py build; python3 -c "input('\\n\\n________________________________\\nBUILD FINISHED\\n¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\\n\\n')\""""], shell=True, creationflags=DETACHED_PROCESS)
call("python3 setup.py build", shell=True)
print(
"""

20
noui_setup.py Normal file
View File

@ -0,0 +1,20 @@
from cx_Freeze import setup, Executable
base = None
executables = [Executable("backend.py", base=base), Executable("wrapper.py", base=base, targetName="Changer.exe")]
packages = ["idna", "os", "ctypes", "praw", "glob", "time", "urllib", "progressbar", "imgur_downloader", "subprocess"]
options = {
'build_exe': {
'build_exe': '.\\noui_build',
'packages':packages,
},
}
setup(
name = "Changer",
options = options,
version = "1.1",
description = 'Wallpaper changer by u/Surferlul',
executables = executables
)

View File

@ -4,7 +4,7 @@ base = None
executables = [Executable("backend.py", base=base), Executable("wrapper.py", base=base), Executable("Changer.py", base=base)]
packages = ["idna", "os", "ctypes", "praw", "glob", "time", "urllib", "progressbar", "imgur_downloader", "wx", "subprocess", "_thread"]
packages = ["idna", "os", "ctypes", "praw", "glob", "time", "urllib", "progressbar", "imgur_downloader", "wx", "subprocess"]
options = {
'build_exe': {
'build_exe': '.\\build',