Qt Installer Framework and sh-scripts



  • Hello everyone,

    I try to deploy an App with the Qt InstallerFramework across platforms.

    For MacOS I run into a bit of an problem.

    The component.addOperation("CreateShortcut"...) is not supported and there seems to be no alternative. Pls correct me if I'm wrong here.

    So I created a script make-alias.sh

    #!/bin/bash
    osascript <<END_SCRIPT
    tell application "Finder" to make alias file to file (posix file "$1") at desktop
    END_SCRIPT
    

    this is shipped with my App-Bundle and executed in the Component.prototype.installationFinished = function()

    So far so good, it works as I want it to.

    Using the MaintenanceTool that is created by the Framework and upon selecting

    • Update components
    • Remove all components

    The alias gets not deleted/removed automatically.

    So I created a 2nd simple script remove-alias.sh

    #!/bin/bash
    rm -r ~/Desktop/AppName
    

    But I have no idea where and how to include this in the installerscript.qs. Any help is appreciated.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.