首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何使用Qt installer Framework正确创建在线安装程序

如何使用Qt installer Framework正确创建在线安装程序
EN

Stack Overflow用户
提问于 2019-04-10 14:51:03
回答 2查看 647关注 0票数 0

我想知道,为什么关于QtIFM的信息如此缺乏?所以,基本上我已经成功地创建了离线安装程序,但现在有一些问题与在线的一个。下面是我制作repo的脚本:

D:\Qt\QtIFW-3.0.6\bin\repogen.exe -p client\packages client\clientRepository

这是用来制作安装程序的:

D:\Qt\QtIFW-3.0.6\bin\binarycreator.exe --online-only -c client\config\config_online.xml -p client\packages client\OnlineInstaller.exe

config_online.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Installer>
    <Name>4x4Basic name</Name>
    <Version>1.0.0</Version>
    <Title>4x4Basic title</Title>
    <Publisher>The AlexLPN Company</Publisher>
    <StartMenuDir>Board4x4</StartMenuDir>
    <TargetDir>@HomeDir@/Board4x4/Basic4x4</TargetDir>

    <RemoteRepositories>
         <Repository>
             <Url>http://github.com/alexlyapin/Basic4x4/clientRepository</Url>
             <Enabled>1</Enabled>
             <DisplayName>Example repository</DisplayName>
         </Repository>
    </RemoteRepositories>
</Installer>

updates.xml:

<?xml version="1.0" encoding="utf-8" ?> 
<Updates>
 <ApplicationName>{Basic4x4}</ApplicationName>
 <ApplicationVersion>1.0.0</ApplicationVersion>
 <Checksum>true</Checksum>
 <PackageUpdate>
  <Name>Basic4x4</Name>
  <DisplayName>Basic4x4 component</DisplayName>
  <Description>This component is uncheckable.</Description>
  <Version>1.0.0</Version>
  <ReleaseDate>2015-12-01</ReleaseDate>
  <SortingPriority>40</SortingPriority>
  <Checkable>false</Checkable>
  <UpdateFile UncompressedSize="56605917" CompressedSize="15509593" OS="Any"/>
  <DownloadableArchives>iconengines.7z,imageformats.7z,platforms.7z,styles.7z,translations.7z,content.7z</DownloadableArchives>
  <Licenses>
   <License name="License agreement" file="license.txt"/>
  </Licenses>
  <SHA1>3ef56b443d43c3d49ee983d7d1f5e6cd6280e30b</SHA1>
 </PackageUpdate>
</Updates>

软件包将以"https://github.com/alexlyapin/Basic4x4/tree/master/clientRepository“的名称上载到GitHub存储库,分别位于Basic4x4文件夹、Updates.xml和license.txt

当我创建安装程序并尝试测试代码库时,我得到错误: Updates.xml: error occurred When parsing element

因此,要么是位置错误,要么是一些xml行。有没有人可以帮我检查一下或者给我一些建议?谢谢!

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2019-06-19 02:43:44

Stack Overflow用户

发布于 2019-04-11 13:59:28

我找到了一个解决方案。重点是,GitHub不会给你提供真正的存储库,因为它是由一些主机提供的,因此,文件索引是不可能的。

我已经在那里创建了免费的主机和上传的存储库。在那之后,一切都正常工作。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55606382

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档