2025-04-03 20:36:56 -06:00
|
|
|
# sfdk
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
> Frontend of the Sailfish SDK.
|
2026-02-18 06:55:01 -07:00
|
|
|
> Some subcommands such as `init`, `build-init`, `device` have their own usage documentation.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/10-general/doc/module.adoc>.
|
2025-04-03 20:36:56 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
- Setup the current environment for building for SailfishOS with a specific versions and architecture target:
|
2025-04-03 20:36:56 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`sfdk config target=SailfishOS-{{5.0.0.62}}-{{aarch64}}`
|
2025-04-03 20:36:56 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
- Initialize the current directory as the build directory:
|
2025-04-03 20:36:56 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`sfdk build-init`
|
2025-04-03 20:36:56 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
- Execute build steps of the RPM SPEC file for a specific project:
|
2025-04-03 20:36:56 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`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`
|
2025-04-03 20:36:56 -06:00
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`sfdk --help`
|
2025-04-03 20:36:56 -06:00
|
|
|
|
|
|
|
|
- Display help for specific topic (`building`, `testing`, `maintaining`, `ide`, `all`):
|
|
|
|
|
|
|
|
|
|
`sfdk --help-{{topic}}`
|
|
|
|
|
|
|
|
|
|
- Display version:
|
|
|
|
|
|
|
|
|
|
`sfdk --version`
|