Skip to content
  • 0 Votes
    2 Posts
    2k Views
    Y

    It may save other time.

    Call below function from installer.qs for creating *.desktop file

    you can call prototype by this. desktopFileCreateOnLinux() from any function in side component script.

    Below script will create the two place *.desktop file.

    inside the @TargetDir@/ inside ~/.local/share/applications/ (it will help while searching from Show application).

    prototype definition:

    Component.prototype.desktopFileCreateOnLinux = function() { if ((systemInfo.kernelType === "linux") ||(systemInfo.kernelType === "Linux")) { var dir = installer.value("TargetDir"); component.addOperation("CreateDesktopEntry", "Squidstat.desktop", "Type=Application\nName=Squidstat\nExec=\'"+dir+"/SquidStat.sh\'\nGenericName=The IDE of choice for Squidstat handle.\nIcon="+dir+"/Squidstat.png\nTerminal=false\nCategories=IDE;Qt;"); component.addOperation("CreateDesktopEntry", "@TargetDir@/Squidstat.desktop", "Type=Application\nName=Squidstat\nExec=\'"+dir+"/SquidStat.sh\'\nGenericName=The IDE of choice for Squidstat handle.\nIcon="+dir+"/Squidstat.png\nTerminal=false\nCategories=IDE;Qt;"); } }
  • 0 Votes
    2 Posts
    2k Views
    sierdzioS

    You need to sign your installer and app executable using a certificate. You can get such cert. from many companies, just Google for it. It costs between 100-400 US dollars, certificate is usually valid for a few years (1-3).

    Once you have the certificate, you can sign any exe with:

    signtool.exe sign /t http://timestamp.digicert.com /f yourCertFile.pfx app.exe

    And then verify the signature with:

    signtool.exe verify /pa /v app.exe

    The signtool.exe is part of Windows SDK, which you can get from Microsoft, free of charge.

  • 0 Votes
    4 Posts
    1k Views
    K

    @Yash001

    That is beyond my experience level. No help possible from my side.