Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app-gui.py 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. # ------------------------------------------------------------------------------------------------------------
  4. # Imports (cx_Freeze)
  5. from cx_Freeze import setup, Executable
  6. # ------------------------------------------------------------------------------------------------------------
  7. # Imports (Custom Stuff)
  8. from carla_host import VERSION
  9. from os import getenv
  10. # ------------------------------------------------------------------------------------------------------------
  11. name = getenv("SCRIPT_NAME")
  12. if name == "Carla":
  13. description = "Carla Plugin Host"
  14. build_exe = ".\\build\\Carla\\"
  15. elif name == "Carla-Control":
  16. description = "Carla Remote Control"
  17. build_exe = ".\\build\\Carla-Control\\"
  18. else:
  19. description = name
  20. build_exe = ".\\build\\{}-resources\\".format(name)
  21. options = {
  22. "zip_include_packages": ["*"],
  23. "zip_exclude_packages": ["PyQt5"],
  24. "replace_paths": [["*",".\\lib\\"]],
  25. "build_exe": build_exe,
  26. "optimize": True,
  27. }
  28. exe_options = {
  29. "script": ".\\source\\frontend\\{}".format(name),
  30. "icon": ".\\resources\\ico\\carla.ico",
  31. "copyright": "Copyright (C) 2011-2021 Filipe Coelho",
  32. "base": "Win32GUI",
  33. "targetName": "{}.exe".format(name),
  34. }
  35. setup(name = name,
  36. version = VERSION,
  37. description = description,
  38. options = {"build_exe": options},
  39. executables = [Executable(**exe_options)])
  40. # ------------------------------------------------------------------------------------------------------------