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
?
轉載于:https://www.cnblogs.com/dyllove98/p/3141316.html
總結
以上是生活随笔為你收集整理的Qt Installer Framework实战的全部內容,希望文章能夠幫你解決所遇到的問題。