Follow the instructions for setting up the development environment for building Sailfish applications.
There are a few sections in build.yml that you should use to customize your output files
sailfish: configuration: Release target: 'arm' target_sdk: 'SailfishOS-2.1.4.13-armv7hl' build_threads: 1 enable_web_engine: true device: type: real device_name: INOI R7 (ARM) user: nemo key: C:/SailfishOS/vmshare/ssh/private_keys/INOI_R7_(ARM)/nemo password: 123 host: '192.168.2.15' extensions: ["mediacapture", "barcode", "signature", "rhoconnect-client", "serialport"] paths: extensions: ["../rhoconnect-client/ext"]
Note: build_threads in some cases may be a cause of errors - please, start with one thread
There are some available extentions on sailfish:
mediacapture barcode signature rhoconnect-client serialport
To build your application you should run the command:
$ rake device:sailfish:production
This command generates rpm file in the <rhodes-app-dir>/bin/target
, that could be installed on the phone manually as a production version. But if you want to run an application from a command line, you should connect the device to your computer with a USB cable. You can verify that your device is connected by executing:
$ ping <device_ip>
After that you should deploy an application on the device, using:
$ rake build:sailfish:deploy
After you can run the application by tapping the desktop icon on the device, or you can run a command:
$ rake run:sailfish
You will need to provide a name and icon for the application that the user will see on the device. You can also customize the loading screen that is shown while your application is launching. Refer to the Application Icon and Splash Screen guide for detailed information.
Update your application’s configuration files to make sure developer / debug / profile options are turned off.
The below values can be used as a guide for rhoconfig.txt
, skip any setting which is not already present.
MinSeverity = 3 LogToOutput = 0 net_trace = 0 log_skip_post = 0
The below values can be used as a guide for build.yml
, skip any setting which is not already present.
profiler: 0