Update install docs
[carla.git] / data / windows / app-gui.py
blobf06d8cd4acf71e228658df74c17372842a1d5229
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
4 # ------------------------------------------------------------------------------------------------------------
5 # Imports (cx_Freeze)
7 from cx_Freeze import setup, Executable
9 # ------------------------------------------------------------------------------------------------------------
10 # Imports (Custom Stuff)
12 from carla_host import VERSION
13 from os import getenv
15 # ------------------------------------------------------------------------------------------------------------
17 name = getenv("SCRIPT_NAME")
19 if name == "Carla":
20 description = "Carla Plugin Host"
21 build_exe = ".\\build\\Carla\\"
22 elif name == "Carla-Control":
23 description = "Carla Remote Control"
24 build_exe = ".\\build\\Carla-Control\\"
25 else:
26 description = name
27 build_exe = ".\\build\\{}-resources\\".format(name)
29 options = {
30 "zip_include_packages": ["*"],
31 "zip_exclude_packages": ["PyQt5"],
32 "replace_paths": [["*",".\\lib\\"]],
33 "build_exe": build_exe,
34 "optimize": True,
37 exe_options = {
38 "script": ".\\source\\frontend\\{}".format(name),
39 "icon": ".\\resources\\ico\\carla.ico",
40 "copyright": "Copyright (C) 2011-2021 Filipe Coelho",
41 "base": "Win32GUI",
42 "targetName": "{}.exe".format(name),
45 setup(name = name,
46 version = VERSION,
47 description = description,
48 options = {"build_exe": options},
49 executables = [Executable(**exe_options)])
51 # ------------------------------------------------------------------------------------------------------------