Qt Installer Framework實戰


Qt Installer Framework是Qt發布的安裝程序支持框架,只需要簡單的配置就可以生成安裝文件,同時可以通過javascript腳本來定制安裝過程。

目錄結構

config

packages

data

meta

配置文件

config/config.xml

packages/[product]/meta/package.xml

packages/[product]/meta/[install.js]

配置文件參數

命令

binarycreator [options] target
選項
  -t|--template file        Use file as installer template binary
                            If this parameter is not given, the template used
                            defaults to installerbase.
  -p|--packages dir         The directory containing the available packages.
                            Defaults to the current working directory.
  -e|--exclude p1,...,pn    Exclude the given packages.
  -i|--include p1,...,pn    Include the given packages and their dependencies
                            from the repository.
  --ignore-translations     Don't use any translation
  --ignore-invalid-packages Ignore all invalid packages instead of aborting.
  -c|--config file          The file containing the installer configuration
  -n|--online-only          Don't add any package into the installer
                             (for online only installers)
  -f|--offline-only         Forces the installer to act as an offline installer, 
                             i.e. never access online repositories
  -r|--resources r1,.,rn    include the given resource files into the binary
  -v|--verbose              Verbose output


生成安裝文件

離線安裝:
  binarycreator --offline-only -c installer-config/config.xml -p packages-directory -t installerbase SDKInstaller
在線安裝:
  binarycreator -c installer-config/config.xml -p packages-directory -e com.nokia.sdk.qt,com.nokia.qtcreator -t installerbase SDKInstaller

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM