sailfish_build
Build SailfishOS projects into RPM packages using the sfdk CLI. Specify project directory, target, and output location for automated compilation.
Instructions
Build a SailfishOS project using the sfdk CLI (Sailfish SDK). Produces an RPM package.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectDir": "<projectDir>"
},
"name": "sailfish_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectDir | Yes | Absolute path to the project root (where the .spec file lives) | |
| target | No | SDK build target, e.g. SailfishOS-4.5.0.18-armv7hl. Leave empty to use the active target. | |
| outputDir | No | Where to copy the resulting RPM. Defaults to projectDir/RPMS. | |
| verbose | No | Show full build output |