Linux command
sfdk 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Build package
sfdk build
Deploy to device
sfdk deploy --device
Run on device
sfdk device exec [command]
Create project
sfdk init --template [app] [project-name]
List devices
sfdk device list
Set target
sfdk config --target=[target-name]
说明
sfdk is the command-line interface for the Sailfish OS SDK, providing tools for developing, building, and deploying Sailfish OS applications. It handles project scaffolding from templates, cross-compilation for ARM and x86 targets, and deployment to physical devices or emulators. The toolkit integrates with Qt/QML build systems (qmake, cmake) and manages the build environment including target SDK installations and build dependencies. Applications can be tested on emulated devices without requiring physical hardware, streamlining the development cycle.
参数
- build
- Build project.
- deploy
- Deploy to device.
- device
- Device operations.
- init
- Create project.
- config
- Configuration.
- --device
- Target device.
- --target _NAME_
- Build target.
FAQ
What is the sfdk command used for?
sfdk is the command-line interface for the Sailfish OS SDK, providing tools for developing, building, and deploying Sailfish OS applications. It handles project scaffolding from templates, cross-compilation for ARM and x86 targets, and deployment to physical devices or emulators. The toolkit integrates with Qt/QML build systems (qmake, cmake) and manages the build environment including target SDK installations and build dependencies. Applications can be tested on emulated devices without requiring physical hardware, streamlining the development cycle.
How do I run a basic sfdk example?
Run `sfdk build` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does build do in sfdk?
Build project.