HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

sfdk — Frontend of the Sailfish SDK. Some subcommands such as `init`, `build-init`, `device` have their own

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandfrontendsdkclisailfishsomesfdk

Problem

How to use the sfdk command: Frontend of the Sailfish SDK. Some subcommands such as init, build-init, device have their own usage documentation. More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/10-general/doc/module.adoc>.

Solution

sfdk — Frontend of the Sailfish SDK. Some subcommands such as init, build-init, device have their own usage documentation. More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/10-general/doc/module.adoc>.

Setup the current environment for building for SailfishOS with a specific versions and architecture target:
sfdk config target=SailfishOS-{{5.0.0.62}}-{{aarch64}}


Initialize the current directory as the build directory:
sfdk build-init


Execute build steps of the RPM SPEC file for a specific project:
sfdk -C {{path/to/project}} build


List repositories in the SailfishOS 5.0.0.62 armv7hl build target:
sfdk -c 'target=SailfishOS-5.0.0.62-armv7hl' build-shell --maintain ssu lr


Deploy the package to the emulator:
sfdk config device="{{Sailfish OS Emulator 5.0.0.62}}"; sfdk deploy --sdk


Display help:
sfdk --help


Display help for specific topic (building, testing, maintaining, ide, all):
sfdk --help-{{topic}}


Display version:
sfdk --version

Code Snippets

Setup the current environment for building for SailfishOS with a specific versions and architecture target

sfdk config target=SailfishOS-{{5.0.0.62}}-{{aarch64}}

Initialize the current directory as the build directory

sfdk build-init

Execute build steps of the RPM SPEC file for a specific project

sfdk -C {{path/to/project}} build

List repositories in the SailfishOS 5.0.0.62 armv7hl build target

sfdk -c 'target=SailfishOS-5.0.0.62-armv7hl' build-shell --maintain ssu lr

Deploy the package to the emulator

sfdk config device="{{Sailfish OS Emulator 5.0.0.62}}"; sfdk deploy --sdk

Context

tldr-pages: common/sfdk

Revisions (0)

No revisions yet.