View Single Post
helex's Avatar
Posts: 543 | Thanked: 802 times | Joined on Apr 2010 @ Germany
#13
Originally Posted by gionni88 View Post
Are you using different application target for the lite and full versions? Do they install in different positions (/opt/dreamremotelite and /opt/dreamremotefull)?
I use different application target's, but it installs in the same location. The target was to replace the demo if someone purchases the full version. So the name of the package is also identical. (and I don't know how to change it inside of the Qt Creator)
On package level it works this way flawless.

As soon as I install the full version the package of the demo got replaced.

This is how my .pro file looks like:

Code:
#CONFIG += freelite
CONFIG += fullversion

freelite {
    DEFINES += VERSIONLITE
    TARGET = DreamRemoteDemo
}
fullversion {
    DEFINES += VERSIONFULL
    TARGET = DreamRemote
}

#------------------------------------------------------------------------

# Harmattan
unix:!symbian:!maemo5 {
    message(Harmattan build)
    DEFINES += Q_WS_HARMATTAN

    freelite {
        target.path = /opt/DreamRemote/bin
        dfile.files = qtc_packaging/debian_harmattan/DreamRemoteDemo.desktop
        dfile.path = /usr/share/applications
        icon64.files = Icon/Harmattan/DreamRemoteDemo.png
        icon64.path = /usr/share/icons/hicolor/64x64/apps
        INSTALLS += target dfile icon64
    }
    fullversion {
        target.path = /opt/DreamRemote/bin
        dfile.files = qtc_packaging/debian_harmattan/DreamRemote.desktop
        dfile.path = /usr/share/applications
        icon64.files = Icon/Harmattan/DreamRemote.png
        icon64.path = /usr/share/icons/hicolor/64x64/apps
        INSTALLS += target dfile icon64
    }
}
I simply switch the comment of the first two lines to build the different versions.

The idea was to create a possibility to check if everything works without spending any kind of money. Only who is satisfied should buy the full version. A solution as fair as possible. And I wanted to avoid this way bad ratings, too.

But I have in the meantime already a bad rating and the demo blocks sometimes a purchase, so I asked now nokia to remove the demo from the store until I have a idea how to fix this.
Perhaps I will create it as a totally different applications with the possibility to install both on the same device. Not very well because nobody will need the demo after buying the full version... but well.
A Nokia employee has raised in the meantime a internal bug report about this kind of issue. From his point of view it should work without problems if the demo has a lower version numbering at the first digit.
Sadly I'm not expecting a fix before PR1.3 - if it will ever get fixed for Harmattan.
__________________
I was a Qt Ambassador!

Please DONATE if you like my work!
It's the best way to motivate me to create more stuff for your Device.

Last edited by helex; 2012-02-25 at 14:17.
 

The Following User Says Thank You to helex For This Useful Post: