fix run programm on windows

This commit is contained in:
Andrei Yankovich 2018-09-09 13:09:50 +03:00
parent 41dbbce8e3
commit 2aad0d70a4
3 changed files with 10 additions and 5 deletions

View File

@ -4,7 +4,7 @@ CONFIG += ordered
include($$PWD/installer/deploy/deployFiles.pri)
message( DEPLOY_FILES_MASTER = $$DEPLOY_FILES)
ENABLE_SNAP = 1 #only linux
ENABLE_SNAP = 0 #only linux
ENABLE_INSTALLER = 1 #only desctop
SUBDIRS += hanoi_towers \

Binary file not shown.

View File

@ -2,17 +2,22 @@ function Controller()
{
installer.uninstallationFinished.connect(this, Controller.prototype.uninstallationFinished);
installer.installationFinished.connect(this, Controller.prototype.installationFinished);
runProgramControl();
}
Controller.prototype.uninstallationFinished = function()
{
function runProgramControl() {
if (systemInfo.kernelType === "winnt") {
Controller.setValue("RunProgram", qsTr("HanoiTowers.exe"));
}
}
Controller.prototype.uninstallationFinished = function() {
}
Controller.prototype.installationFinished = function()
{
Controller.prototype.installationFinished = function() {
}