-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
191 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
terrafirma (3.1.4) bionic; urgency=medium | ||
|
||
* Updated for 1.4.2 | ||
|
||
-- Sean Kasun <[email protected]> Sun, 04 Apr 2021 16:40:22 -0700 | ||
|
||
terrafirma (3.1.3) bionic; urgency=medium | ||
|
||
* Fixed steam config bug | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,64 @@ | ||
var targetDirectoryPage = null; | ||
|
||
function Component() | ||
{ | ||
installer.gainAdminRights(); | ||
component.loaded.connect(this, this.installerLoaded); | ||
} | ||
|
||
Component.prototype.createOperations = function() | ||
{ | ||
component.createOperations(); | ||
if (systemInfo.productType == "windows") { | ||
component.addOperation("CreateShortcut", "@TargetDir@/terrafirma.exe", | ||
"@StartMenuDir@/Terrafirma.lnk", "workingDirectory=@TargetDir@"); | ||
component.addOperation("CreateShortcut", | ||
"@TargetDir@/terrafirma.exe", | ||
"@DesktopDir@/Terrafirma.lnk", | ||
"workingDirectory=@TargetDir@"); | ||
component.addOperation("CreateShortcut", | ||
"@TargetDir@/terrafirma.exe", | ||
"@StartMenuDir@/Terrafirma.lnk", | ||
"workingDirectory=@TargetDir@"); | ||
} | ||
} | ||
|
||
Component.prototype.installerLoaded = function() | ||
{ | ||
installer.setDefaultPageVisible(QInstaller.TargetDirectory, false); | ||
installer.addWizardPage(component, "TargetWidget", QInstaller.TargetDirectory); | ||
|
||
targetDirectoryPage = gui.pageWidgetByObjectName("DynamicTargetWidget"); | ||
targetDirectoryPage.windowTitle = "Choose Installation Directory"; | ||
targetDirectoryPage.description.setText("Please select where TerraFirma will be installed:"); | ||
targetDirectoryPage.targetDirectory.textChanged.connect(this, this.targetDirectoryChanged); | ||
targetDirectoryPage.targetDirectory.setText(installer.value("TargetDir")); | ||
targetDirectoryPage.targetChooser.released.connect(this, this.targetChooserClicked); | ||
|
||
gui.pageById(QInstaller.ComponentSelection).entered.connect(this, this.componentSelectionPageEntered); | ||
} | ||
|
||
Component.prototype.targetChooserClicked = function() | ||
{ | ||
var dir = QFileDialog.getExistingDirectory("", targetDirectoryPage.targetDirectory.text); | ||
targetDirectoryPage.targetDirectory.setText(dir); | ||
} | ||
|
||
Component.prototype.targetDirectoryChanged = function() | ||
{ | ||
var dir = targetDirectoryPage.targetDirectory.text; | ||
if (installer.fileExists(dir) && installer.fileExists(dir + "/maintenancetool.exe")) { | ||
targetDirectoryPage.warning.setText("<p style=\"color: red\">Existing installation detected and will be overwritten.</p>"); | ||
} else if (installer.fileExists(dir)) { | ||
targetDirectory.warning.setText("<p style=\"color: red\">Installing in existing directory. It will be wiped on uninstallation.</p>"); | ||
} else { | ||
targetDirectoryPage.warning.setText(""); | ||
} | ||
installer.setValue("TargetDir", dir); | ||
} | ||
|
||
Component.prototype.componentSelectionPageEntered = function() | ||
{ | ||
var dir = installer.value("TargetDir"); | ||
if (installer.fileExists(dir) && installer.fileExists(dir + "/maintenancetool.exe")) { | ||
installer.execute(dir + "/maintenancetool.exe", ["purge"], "yes"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>TargetWidget</class> | ||
<widget class="QWidget" name="TargetWidget"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>491</width> | ||
<height>190</height> | ||
</rect> | ||
</property> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="minimumSize"> | ||
<size> | ||
<width>491</width> | ||
<height>190</height> | ||
</size> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Form</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<widget class="QLabel" name="description"> | ||
<property name="text"> | ||
<string/> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<layout class="QHBoxLayout" name="horizontalLayout"> | ||
<item> | ||
<widget class="QLineEdit" name="targetDirectory"> | ||
<property name="readOnly"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QToolButton" name="targetChooser"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Fixed" vsizetype="Preferred"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="minimumSize"> | ||
<size> | ||
<width>0</width> | ||
<height>0</height> | ||
</size> | ||
</property> | ||
<property name="text"> | ||
<string>...</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
<item> | ||
<layout class="QHBoxLayout" name="horizontalLayout_2"> | ||
<property name="topMargin"> | ||
<number>0</number> | ||
</property> | ||
<item> | ||
<widget class="QLabel" name="warning"> | ||
<property name="enabled"> | ||
<bool>true</bool> | ||
</property> | ||
<property name="text"> | ||
<string>TextLabel</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<spacer name="horizontalSpacer"> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>40</width> | ||
<height>20</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
</layout> | ||
</item> | ||
<item> | ||
<spacer name="verticalSpacer"> | ||
<property name="orientation"> | ||
<enum>Qt::Vertical</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>20</width> | ||
<height>122</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters