I have a glitch/bug on the Licence Agreement page of my installer. This bug only happens on Mac.I removed all non-mandary pages. Does someone can help me ?
rem : It looks like a bad selection/focus of the TextZone. When I click on the radio buttons or on the text the blue rect disappears
This is the screenshot : Installer Licence Page gfx bug screenshot
This is my script :
function Component()
{
installer.setDefaultPageVisible(QInstaller.Introduction, false); // needed to avoid double introduction page
installer.setDefaultPageVisible(QInstaller.TargetDirectory, false);
installer.setDefaultPageVisible(QInstaller.StartMenuSelection, false);
installer.setDefaultPageVisible(QInstaller.ComponentSelection, false);
//installer.setDefaultPageVisible(QInstaller.ReadyForInstallation, false); // commented cuz we have a non-informative error (E_FAIL) when the disk is already full
}
Component.prototype.createOperationsForArchive = function(archive)
{
if (installer.value("os") === "mac")
{
component.addOperation("Extract", archive, "@ApplicationsDir@");
}
else
{
component.addOperation("Extract", archive, "@TargetDir@");
}
}
Component.prototype.createOperations = function()
{
try {
// call the base create operations function
component.createOperations();
} catch (e) {
console.log(e);
}
if (installer.value("os") === "win")
{
component.addOperation("CreateShortcut", "@TargetDir@/bin/game-launcher.exe", "@DesktopDir@/game.lnk");
}
if (installer.value("os") === "x11")
{
component.addOperation("CreateDesktopEntry", "/usr/share/applications/YourApp.desktop", "Version=1.0\nType=Application\nTerminal=false\nExec=@TargetDir@/YourApp.sh\nName=YourApp_name\nIcon=@TargetDir@YourApp_icon.png\nName[en_US]=YourApp_name");
component.addElevatedOperation("Copy", "/usr/share/applications/YourApp.desktop", "@HomeDir@/Desktop/YourApp.desktop");
}
}
Component.prototype.isDefault = function()
{
// select the component by default
return true;
}