|
123456789101112131415161718192021222324252627282930313233343536373839 |
- #!/usr/bin/env python3
- # -*- coding: utf-8 -*-
-
- # ------------------------------------------------------------------------------------------------------------
- # Imports (cx_Freeze)
-
- from cx_Freeze import setup, Executable
-
- # ------------------------------------------------------------------------------------------------------------
- # Imports (Custom Stuff)
-
- from carla_host import VERSION
- from os import getenv
-
- # ------------------------------------------------------------------------------------------------------------
-
- name = getenv("TARGET_NAME")
-
- options = {
- "zip_include_packages": ["*"],
- "zip_exclude_packages": ["PyQt5"],
- "replace_paths": [["*","./lib/"]],
- "build_exe": "./build-carla",
- "optimize": True,
- }
-
- exe_options = {
- "script": "./bin/resources/{}".format(name),
- "targetName": name,
- }
-
- setup(name = "Carla",
- version = VERSION,
- description = name,
- options = {"build_exe": options},
- executables = [Executable(**exe_options)])
-
- # ------------------------------------------------------------------------------------------------------------
-
|