UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Deploying aditional files with the application

    Scheduled Pinned Locked Moved App Development
    2 Posts 1 Posters 670 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • V Offline
        vadrian89
        last edited by vadrian89

        I have images and some fonts I want to deploy, but I don't seem to find how to deploy them and the path to them after deployment.....
        Can someone give me a hand?
        The files are in in directories such as "fonts" and "icons".

        1 Reply Last reply Reply Quote 0
        • V Offline
          vadrian89
          last edited by

          I have solved this, in case anyone hits the same brick wall:

          In the .pro file, the one selected in my screenshot, I needed to specify that it should install those aditional files.
          In my case I mentioned that it should install the DISTFILES, like the following:
          0_1510479061414_Captură de ecran din 2017-11-12 11-27-02.png
          DISTFILES +=
          weathericons-regular-webfont.ttf
          Ubuntu-C.ttf
          fontawesome.ttf

          #set the path where to install distfiles aswell as adding which files to be added
          dist_files.path = /Cumulus
          dist_files.files += $${DISTFILES}

          #you can see that at the the end I've mentioned that dist_files should be installed aswell
          INSTALLS+=config_files qml_files desktop_file dist_files

          Might seem dumb of me for not knowing, that the files should be manually set to install, but I haven't used it before since for Android Qt Creator does that for me because it has a special directory where I need to add the aditional files.
          And on desktop I manually copied the files in the build directories without thinking I can tell qmake which files should also be deployed.
          So in case any other has this issue might help them out.

          1 Reply Last reply Reply Quote 2
          • First post
            Last post