Skip to content

Commit

Permalink
added installer files (Qt Installer Framework based)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnudles committed Nov 12, 2020
1 parent 6110ba5 commit 8ed40cc
Show file tree
Hide file tree
Showing 12 changed files with 828 additions and 0 deletions.
9 changes: 9 additions & 0 deletions installer/config/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<Installer>
<Name>Stereograma</Name>
<Version>2.6.0</Version>
<Title>Stereograma Installer</Title>
<Publisher>Kapandaria</Publisher>
<StartMenuDir>Stereograma</StartMenuDir>
<TargetDir>@HomeDir@/Stereograma</TargetDir>
</Installer>
2 changes: 2 additions & 0 deletions installer/packages/com.kapandaria.stereograma/data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
674 changes: 674 additions & 0 deletions installer/packages/com.kapandaria.stereograma/meta/LICENSE.txt

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions installer/packages/com.kapandaria.stereograma/meta/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<Package>
<DisplayName>Stereograma Binaries</DisplayName>
<Description>Install Stereograma binaries (Software)</Description>
<Version>2.6.0</Version>
<ReleaseDate>2020-11-12</ReleaseDate>
<Licenses>
<License name="GNU General Public License v3.0" file="LICENSE.txt" />
</Licenses>
<Default>true</Default>
</Package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<Package>
<DisplayName>Depth maps and textures</DisplayName>
<Description>Install Additional resources</Description>
<Version>2.6.0</Version>
<ReleaseDate>2020-11-12</ReleaseDate>
<Default>true</Default>
</Package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the FOO module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 as published by the Free Software
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/

function Component()
{
// default constructor
}

Component.prototype.createOperations = function()
{
component.createOperations();

if (systemInfo.productType === "windows") {
component.addOperation("CreateShortcut",
"@TargetDir@/Stereograma.exe",// target
"@DesktopDir@/Stereograma.lnk",// link-path
"workingDirectory=@TargetDir@",// working-dir
"iconPath=@TargetDir@/Stereograma.exe", "iconId=0",// icon
"description=Start Stereograma");// description

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<Package>
<DisplayName>Desktop shortcut</DisplayName>
<Description>Install Desktop shortcut</Description>
<Version>2.6.0</Version>
<ReleaseDate>2020-11-12</ReleaseDate>
<Default>true</Default>
<Script>installscript.qs</Script>
</Package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the FOO module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 as published by the Free Software
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/

function Component()
{
// default constructor
}

Component.prototype.createOperations = function()
{
component.createOperations();

if (systemInfo.productType === "windows") {
component.addOperation("CreateShortcut", "@TargetDir@/Stereograma.exe", "@StartMenuDir@/Stereograma.lnk",
"workingDirectory=@TargetDir@", "iconPath=@TargetDir@/Stereograma.exe",
"iconId=0", "description=Open Stereograma");
component.addOperation("CreateShortcut", "@TargetDir@/maintenancetool.exe", "@StartMenuDir@/Uninstall_Stereograma.lnk",
"workingDirectory=@TargetDir@", "iconPath=@TargetDir@/maintenancetool.exe",
"iconId=0", "description=Uninstall Stereograma");

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<Package>
<DisplayName>Start Menu shortcut</DisplayName>
<Description>Install Start Menu shortcut</Description>
<Version>2.6.0</Version>
<ReleaseDate>2020-11-12</ReleaseDate>
<Default>true</Default>
<Script>installscript.qs</Script>
</Package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<Package>
<DisplayName>3D Models</DisplayName>
<Description>Install Sample 3D Models</Description>
<Version>2.6.0</Version>
<ReleaseDate>2020-11-12</ReleaseDate>
<Default>true</Default>
</Package>

0 comments on commit 8ed40cc

Please sign in to comment.