module QtDeployWin::Cli
Public Class Methods
exec()
click to toggle source
# File lib/qt-deploy-win/cli.rb, line 22 def self.exec target, dist_dir = ARGV.shift, ARGV.shift unless target && dist_dir print_extended_usage exit 2 end builder = ::QtDeployWin::Builder.new( executable: target, dist_dir: dist_dir, qt_dir: ENV["QTDIR"], windeployqt_args: ARGV.to_a ) unless builder.valid? print_usage puts puts "The following errors occured:" builder.errors.each do |err| puts " " + err end exit end builder.build end
print_extended_usage()
click to toggle source
# File lib/qt-deploy-win/cli.rb, line 9 def self.print_extended_usage print_usage puts puts "Pass an executable as a first argument" + " and it will be copied to the directoy passed" + " as a second argument along with all dependencies." puts puts "You should also specify a correct path to the Qt" + " installation directroy." puts "Current ENV['QTDIR']: #{ENV['QTDIR']}" puts "Example ENV['QTDIR']: C:/Qt/5.5/msvc2013" end
print_usage()
click to toggle source
# File lib/qt-deploy-win/cli.rb, line 5 def self.print_usage puts "Usage: #{$0} some-qt-app.exe dist-dir" end