Cleanup
[carla.git] / data / macos / bundle.py
blob472789ab46152f5ff2cc74fdd23b3acf9a2b67dd
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
4 # ------------------------------------------------------------------------------------------------------------
5 # Imports (cx_Freeze)
7 from cx_Freeze import setup, Executable
8 from os import getenv
10 # ------------------------------------------------------------------------------------------------------------
11 # Imports (Custom Stuff)
13 from carla_host import VERSION
15 # ------------------------------------------------------------------------------------------------------------
17 SCRIPT_NAME = getenv("SCRIPT_NAME")
19 options = {
20 "zip_include_packages": ["*"],
21 "zip_exclude_packages": ["PyQt5"],
22 "replace_paths": [["*","@executable_path/"]],
23 "optimize": True,
26 boptions = {
27 "iconfile": "./resources/ico/carla%s.icns" % ("-control" if SCRIPT_NAME == "Carla-Control" else "")
30 if SCRIPT_NAME in ("Carla", "Carla-Control"):
31 boptions["custom_info_plist"] = "./data/macos/%s.plist" % SCRIPT_NAME
33 setup(name = "Carla",
34 version = VERSION,
35 description = "Carla Plugin Host",
36 options = {"build_exe": options, "bdist_mac": boptions},
37 executables = [Executable("./source/frontend/%s" % SCRIPT_NAME)])
39 # ------------------------------------------------------------------------------------------------------------