[SDK] "Deploy By Building An RPM Package" Run button grayed out by default [answered]
Hello,
I was fighting my way through other issues (damn you, git conflict lines in a .ts file) and it occured to me that the one deployment option for a project do not actually do what it should:
Deploy As RPM Package is supposed to compile the source, build the RPM package, deploy it to the emulator/device and launch it - this is what it does.
Deploy By Copying Binaries is supposed to compile the source, copy the compiled files along with other necessary files to the emulator/device and launch it - this it what it does.
Deploy By Building An RPM Package is supposed to compile the source and build the RPM package - but it does not generate the RPM package, it just compiles.
Thus, only way to generate an RPM package is to pick Deploy As RPM Package, which also deploys and runs it.
There is, however, a simple solution:
- Open Sailfish OS IDE (Qt Creator)
- Open your project
- Select Projects (wrench) from the left side
- Perform steps 5 through 8 for each architecture (i486, armv7l)
- Select Build & > Sailfish-2.2.0.29... (varies) > Run
- Create new run configuration; click Add > Custom Executable under Run section
- Enter some dummy executable command - I used command
ls
- Rename the run configuration - I used Build and validate RPM
After this, I can actually run the deployment method:
Why is this so handy, instead of just using the RPMs from successful emulator i486 run, or failed deployment for armv7l, which leaves the packages behind? Because this actually validated the code and RPM package, which really helps getting the code Store compliant. (That's what the six issues are actually.)
So, in the end, my question is: should the run button not be grayed out by default? Is this really the only way to properly run the RPM generation and validation from the Sailfish OS IDE, or have I missed something important in online documentation? Thanks.
It's explained in details in one of the first tutorials: Your First App
Sthocs ( 2018-06-28 19:45:44 +0200 )editFair and square, it's there all right. Well, now I am at least a lot more familiar with the build system :)
Direc ( 2018-06-28 20:18:00 +0200 )edit