mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 23:15:52 +08:00
Do not include enterprise resources if not needed
This commit is contained in:
parent
85cd142266
commit
3910ab0b78
@ -41,10 +41,12 @@ pyinstaller:
|
|||||||
package: "native_cad_plugin"
|
package: "native_cad_plugin"
|
||||||
src: "res/plugins/NativeCADplugin"
|
src: "res/plugins/NativeCADplugin"
|
||||||
dst: "share/cura/plugins/NativeCADplugin"
|
dst: "share/cura/plugins/NativeCADplugin"
|
||||||
|
enterprise_only: true
|
||||||
native_cad_plugin_bundled:
|
native_cad_plugin_bundled:
|
||||||
package: "native_cad_plugin"
|
package: "native_cad_plugin"
|
||||||
src: "res/bundled_packages"
|
src: "res/bundled_packages"
|
||||||
dst: "share/cura/resources/bundled_packages"
|
dst: "share/cura/resources/bundled_packages"
|
||||||
|
enterprise_only: true
|
||||||
cura_resources:
|
cura_resources:
|
||||||
package: "cura"
|
package: "cura"
|
||||||
src: "resources"
|
src: "resources"
|
||||||
|
@ -194,7 +194,7 @@ class CuraConan(ConanFile):
|
|||||||
pyinstaller_metadata = self.conan_data["pyinstaller"]
|
pyinstaller_metadata = self.conan_data["pyinstaller"]
|
||||||
datas = []
|
datas = []
|
||||||
for data in pyinstaller_metadata["datas"].values():
|
for data in pyinstaller_metadata["datas"].values():
|
||||||
if not self.options.internal and data.get("internal", False):
|
if (not self.options.internal and data.get("internal", False)) or (not self.options.enterprise and data.get("enterprise_only", False)):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if "oses" in data and self.settings.os not in data["oses"]:
|
if "oses" in data and self.settings.os not in data["oses"]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user