Commit 8b819f35 authored by Ingemar Ceicer's avatar Ingemar Ceicer

Online installer success

parent b44a8027
<?xml version="1.0"?>
<Installer>
<WizardStyle>Modern</WizardStyle>
<Name>hashSum</Name>
<Version>2.5.1</Version>
......
<?xml version="1.0" encoding="UTF-8"?>
<Package>
<DisplayName>hashSum 2.5.1</DisplayName>
<DisplayName>org.ceicer.hashsum</DisplayName>
<Description>A program to compare files and to calculate hash sums</Description>
<Version>2.5.1</Version>
<ReleaseDate>2020-05-22</ReleaseDate>
......
Shows how to set up an online installer.
The example uses a very simple web server shipped with python.
Generate online repository with
repogen -p packages repository
Generate installer with
binarycreator --online-only -c config/config.xml -p packages install-hashSum_X86-2.5.1
This should make the content of the local directory available under
http://localhost
You should be able to now launch the installer.
To deploy an update
Ändra
<Version>2.5.2</Version> i package.xml
run:
repogen --update-new-components -p packages_update repository
and launch the maintenance tool in your installation.
<?xml version="1.0"?>
<Package>
<DisplayName>hashSum 2.5.1</DisplayName>
<Description>A program to compare files and to calculate hash sums</Description>
<Version>2.5.1</Version>
<ReleaseDate>2020-05-22</ReleaseDate>
<Name>org.ceicer.haschsum</Name>
<Virtual>false</Virtual>
<Licenses>
<License file='gpl.txt' name='GPL Version 3' />
</Licenses>
<Script>installerscript.qs</Script>
<DownloadableArchives>2.5.1content.7z, 2.5.1lib.7z, 2.5.1meta.7z, 2.5.1plugins.7z</DownloadableArchives>
<SortingPriority>123</SortingPriority>
<UpdateText>This changed compared to the last release</UpdateText>
<Default>false</Default>
<ForcedInstallation>false</ForcedInstallation>
<Essential>false</Essential>
</Package>
<?xml version="1.0"?>
<Installer>
<WizardStyle>Modern</WizardStyle>
<Name>hashSum</Name>
<Version>2.5.1</Version>
......@@ -12,16 +13,11 @@
<StartMenuDir>hashSum</StartMenuDir>
<MaintenanceToolName>hashSumMaintenanceTool</MaintenanceToolName>
<AllowNonAsciiCharacters>true</AllowNonAsciiCharacters>
<RepositoryCategories>
<RemoteRepositories>
<DisplayName>hashSum</DisplayName>
<Tooltip>Repositorie for hashSum</Tooltip>
<Repository>
<Enabled>1</Enabled>
<Url>http://bin.ceicer.com/hash/repository</Url>
</Repository>
</RemoteRepositories>
</RepositoryCategories>
<TargetDir>@[email protected]/Hashsum</TargetDir>
<AdminTargetDir>@[email protected]/Hashsum</AdminTargetDir>
<RemoteRepositories>
<Repository>
<Url>http://bin.ceicer.com/hash/repository</Url>
</Repository>
</RemoteRepositories>
</Installer>
<?xml version="1.0" encoding="UTF-8"?>
<Package>
<DisplayName>hashSum 2.5.1</DisplayName>
<DisplayName>hashSum</DisplayName>
<Description>A program to compare files and to calculate hash sums</Description>
<Version>2.5.1</Version>
<ReleaseDate>2020-05-22</ReleaseDate>
......
[Desktop Entry]
Name=hashSum
Exec=/opt/Hashsum/AppRun
Comment=
Terminal=false
Icon=/opt/Hashsum/hashsum.ico
Type=Application
Categories=Utility;
function Component()
{
gui.pageWidgetByObjectName("LicenseAgreementPage").entered.connect(changeLicenseLabels);
}
Component.prototype.createOperations = function()
{
component.createOperations();
if (systemInfo.productType === "windows") {
component.addOperation("CreateShortcut", "@[email protected]/hashsum-2.5.1.exe", "@[email protected]/hashsum-2.5.1.lnk",
"[email protected]@", "[email protected]@/hashsum.ico");
component.addOperation("CreateShortcut", "@[email protected]/hashsum-2.5.1.exe", "@[email protected]/hashsum-2.5.1.lnk",
"[email protected]@", "[email protected]@/hashsum.ico");
}
if (installer.value("os") === "x11") {
component.addOperation("Copy", "@[email protected]/hashSum.desktop", "/usr/share/applications/hashSum.desktop");
}
}
changeLicenseLabels = function()
{
page = gui.pageWidgetByObjectName("LicenseAgreementPage");
page.AcceptLicenseLabel.setText("<font size=4>Yes I do!</font>");
page.RejectLicenseLabel.setText("<font size=4>No I don't!</font>");
}
<Package>
<DisplayName>hashSum 2.5.1</DisplayName>
<Description>A program to compare files and to calculate hash sums</Description>
<Version>2.5.1</Version>
<ReleaseDate>2020-05-22</ReleaseDate>
<Licenses>
<License file='gpl.txt' name='GPL Version 3' />
</Licenses>
<Default>true</Default>
<ForcedInstallation>false</ForcedInstallation>
<Script>installerscript.qs</Script>
</Package>
<?xml version="1.0" encoding="UTF-8"?>
<Package>
<DisplayName>svtplay-dl</DisplayName>
<Description>Ladda ner</Description>
<Version>0.0.2</Version>
<ReleaseDate>2020-05-29</ReleaseDate>
<Default>true</Default>
<ForcedInstallation>false</ForcedInstallation>
</Package>
<Updates>
<ApplicationName>{AnyApplication}</ApplicationName>
<ApplicationVersion>1.0.0</ApplicationVersion>
<Checksum>true</Checksum>
<PackageUpdate>
<Name>hashSum</Name>
<DisplayName>hashSum</DisplayName>
<Description>A program to compare files and to calculate hash sums</Description>
<Version>2.5.1</Version>
<ReleaseDate>2020-05-22</ReleaseDate>
<Default>true</Default>
<ForcedInstallation>false</ForcedInstallation>
<Script>installerscript.qs</Script>
<UpdateFile UncompressedSize="137226471" CompressedSize="35796788" OS="Any"/>
<DownloadableArchives>lib.7z,plugins.7z,content.7z</DownloadableArchives>
<Licenses>
<License file="gpl.txt" name="GPL Version 3"/>
</Licenses>
<SHA1>c09fd28e9b650b88054ec9e8983be41229fc7ce5</SHA1>
</PackageUpdate>
<PackageUpdate>
<Name>svtplay-dl</Name>
<DisplayName>svtplay-dl</DisplayName>
<Description>Ladda ner</Description>
<Version>0.0.2</Version>
<ReleaseDate>2020-05-29</ReleaseDate>
<Default>true</Default>
<ForcedInstallation>false</ForcedInstallation>
<UpdateFile UncompressedSize="93415" CompressedSize="87929" OS="Any"/>
<DownloadableArchives>content.7z</DownloadableArchives>
<SHA1>6ed541cc2d98cee16aca773a4e689b677bbf70cd</SHA1>
</PackageUpdate>
</Updates>
27ce9d16dff8af4bd793d62a43f2b2acd08c3d4b
\ No newline at end of file
6bffcbf19bd290a7bc7125f80c2549db64151401
\ No newline at end of file
12b58482ea9faee3d5e630570f987ffeb15018c2
\ No newline at end of file
be9a37bd105a09165976fa4a6461d72496c499a8
\ No newline at end of file
......@@ -2,12 +2,6 @@
/opt/Qt/Tools/QtInstallerFramework/3.2/bin/binarycreator -c config/config.xml -p packages install-hashSum_X86_64-2.5.1
/opt/qtinstallerframework/bin/binarycreator --resources fonts.qrc -c config/config.xml -p packages install-hashSum_X86-2.5.1
Linux online
repogen -p packages repository
binarycreator -n -p packages -c config/config.xml install-hashSum_X86-2.5.1
installerbase
binarycreator
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment