40 lines
1.1 KiB
Python
40 lines
1.1 KiB
Python
#!/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)])
|
|
|
|
# ------------------------------------------------------------------------------------------------------------
|
|
|