Added No UI Build
This commit is contained in:
parent
5d9aa251e2
commit
9b7f11d8cc
7
build.py
7
build.py
@ -1,8 +1,13 @@
|
|||||||
from subprocess import call
|
from subprocess import call, Popen, DETACHED_PROCESS
|
||||||
from shutil import rmtree
|
from shutil import rmtree
|
||||||
from os.path import isdir
|
from os.path import isdir
|
||||||
if isdir(".\\build"):
|
if isdir(".\\build"):
|
||||||
|
print("Removing .\\build")
|
||||||
rmtree(".\\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)
|
call("python3 setup.py build", shell=True)
|
||||||
print(
|
print(
|
||||||
"""
|
"""
|
||||||
|
20
noui_setup.py
Normal file
20
noui_setup.py
Normal 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
|
||||||
|
)
|
2
setup.py
2
setup.py
@ -4,7 +4,7 @@ base = None
|
|||||||
|
|
||||||
executables = [Executable("backend.py", base=base), Executable("wrapper.py", base=base), Executable("Changer.py", base=base)]
|
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 = {
|
options = {
|
||||||
'build_exe': {
|
'build_exe': {
|
||||||
'build_exe': '.\\build',
|
'build_exe': '.\\build',
|
||||||
|
Loading…
Reference in New Issue
Block a user