mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:58:59 +08:00
copy cura_appy.py during generation to bin
This commit is contained in:
parent
f2649bc7ce
commit
adac0c52a2
@ -310,6 +310,7 @@ class CuraConan(ConanFile):
|
|||||||
self.cpp.package.resdirs = ["resources", "plugins", "packaging", "pip_requirements"] # pip_requirements should be the last item in the list
|
self.cpp.package.resdirs = ["resources", "plugins", "packaging", "pip_requirements"] # pip_requirements should be the last item in the list
|
||||||
|
|
||||||
def generate(self):
|
def generate(self):
|
||||||
|
copy(self, "cura_app.py", os.path.join(self.source_folder, "cura_app.py"), os.path.join(self.build_folder, self.build_folder, self.cpp_info.bindirs[0]))
|
||||||
cura_run_envvars = self._cura_run_env.vars(self, scope = "run")
|
cura_run_envvars = self._cura_run_env.vars(self, scope = "run")
|
||||||
ext = ".ps1" if self.settings.os == "Windows" else ".sh"
|
ext = ".ps1" if self.settings.os == "Windows" else ".sh"
|
||||||
cura_run_envvars.save_script(os.path.join(self.folders.generators, f"cura_run_environment{ext}"))
|
cura_run_envvars.save_script(os.path.join(self.folders.generators, f"cura_run_environment{ext}"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user