Module: Zui::Runtime

Defined in:
lib/zui/runtime.rb

Constant Summary collapse

QML_FILES =
%w[Desktop.qml Service.qml ControlNode.qml].freeze
QML_DIRECTORIES =
%w[Components Controls Theme Fonts].freeze

Class Method Summary collapse

Class Method Details

.install_qml(destination, framework_root: FRAMEWORK_ROOT) ⇒ Object



12
13
14
15
16
17
18
19
20
21
# File 'lib/zui/runtime.rb', line 12

def install_qml(destination, framework_root: FRAMEWORK_ROOT)
  FileUtils.mkdir_p(destination)
  QML_FILES.each do |name|
    FileUtils.cp(File.join(framework_root, name), File.join(destination, name))
  end
  QML_DIRECTORIES.each do |name|
    FileUtils.cp_r(File.join(framework_root, name), File.join(destination, name))
  end
  destination
end