Silent install Qt run installer on ubuntu server

前端 未结 12 1184
有刺的猬
有刺的猬 2020-11-30 23:47

I wanted to know if there is a way to do a silent install of the Qt run installer on Ubuntu Server?
I mean by-pass the options of the installer and do a default install?

12条回答
  •  悲哀的现实
    2020-12-01 00:16

    As of installer 3.0.2-online 29-11-2017, you must add a delay in your JS script because the "Next" button in the "Welcome" page is disabled for one second or so.

    Controller.prototype.WelcomePageCallback = function() {
        gui.clickButton(buttons.NextButton, 3000);
    }
    

    For once, they explain on the 3.2.1-online 29-01-2020 release page how to skip the new form

    Controller.prototype.ObligationsPageCallback = function() {
        var page = gui.pageWidgetByObjectName("ObligationsPage");
        page.obligationsAgreement.setChecked(true);
        page.completeChanged();
        gui.clickButton(buttons.NextButton);
    }
    

    Some may wonder how to create the mysterious qtaccount.ini file (required since 3.2.1-2-online). Qt only tells us that it should be placed in ~/.local/share/Qt/. I was unable to find any other information. The installer creates this file itself when you enter your credentials for the first time. So simply do a manual installation and quit after the accound form. The generated file looks like

    [General]
    email=my.email@domain.ca
    pass=mypass
    
    [QtAccount]
    email=my.email@domain.ca
    jwt=a long hash
    u=a small hash
    

提交回复
热议问题