-
Notifications
You must be signed in to change notification settings - Fork 747
Bundling Assets
There are two different ways to bundle assets with your application. One is best suited for bigger assets or assets that need to live outside your application binary (i.e. videos or application icons). The other is best suited for smaller assets or assets that can profit from being embedded into your binary (i.e. small images or *.qml/*.ui
files).
To deploy assets alongside your binary, you just need to create a folder with the same name as your deployment target inside the root folder of your project. Then simply place all the assets you wish to be bundled for the target into the right target folder. During deployment, qtdeploy will automatically pickup the target specific assets from the corresponding folder and deploy them alongside your binary.
Target | Folder |
---|---|
Windows | windows |
Linux | linux |
Android (+Wear) | android |
Android-Emulator (+Wear) | android-emulator |
Raspberry Pi (1/2/3) |
rpi1 or rpi2 or rpi3
|
SailfishOS | sailfish |
SailfishOS-Emulator | sailfish-emulator |
Ubuntu Touch | ubports |
JavaScript | js |
WebAssembly | wasm |
macOS | darwin |
iOS | ios |
iOS-Simulator | ios-simulator |
AsteroidOS | asteroid |
You can find some examples here
Please take a look at qtrcc for more infos about how to embeed assets into your binary.