dtrainor | ac84a37 | 2015-10-05 18:01:48 | [diff] [blame] | 1 | # Running Blimp |
| 2 | |
| 3 | See [build](build.md) for instructions on how to build Blimp. |
| 4 | |
| 5 | ## Running the client |
| 6 | |
| 7 | There are both Android and Linux clients. The Android client is the shipping |
| 8 | client while the Linux client is used for development purposes. |
| 9 | |
| 10 | ### Android Client |
| 11 | |
| 12 | Install the Blimp APK with the following: |
| 13 | |
| 14 | ```bash |
| 15 | ./build/android/adb_install_apk.py $(PRODUCT_DIR)/apks/Blimp.apk |
| 16 | ``` |
| 17 | |
| 18 | Set up any command line flags with: |
| 19 | |
| 20 | ```bash |
| 21 | ./build/android/adb_blimp_command_line --enable-webgl |
| 22 | ``` |
| 23 | |
dtrainor | 6df6164 | 2016-02-19 16:10:25 | [diff] [blame^] | 24 | To have the client connect to a custom engine use the `--blimplet-endpoint` |
| 25 | flag. This takes values in the form of scheme:ip:port. The possible valid |
| 26 | schemes are 'tcp', 'quic', and 'ssl'. An example valid endpoint would be |
| 27 | `--blimplet-endpoint=tcp:127.0.0.1:500`. |
| 28 | |
dtrainor | ac84a37 | 2015-10-05 18:01:48 | [diff] [blame] | 29 | Run the Blimp APK with: |
| 30 | |
| 31 | ```bash |
| 32 | adb_run_blimp_client |
| 33 | ``` |
| 34 | |
| 35 | ### Linux Client |
| 36 | |
| 37 | TBD |
maniscalco | 91be48c | 2015-10-05 19:30:22 | [diff] [blame] | 38 | |
| 39 | ## Running the engine |
| 40 | |
kmarshall | 6c98508d | 2016-01-11 21:06:28 | [diff] [blame] | 41 | ### In a container |
maniscalco | a4dae22c | 2015-10-05 20:13:50 | [diff] [blame] | 42 | For running the engine in a container, see [container](container.md). |
kmarshall | 6c98508d | 2016-01-11 21:06:28 | [diff] [blame] | 43 | |
| 44 | ### On a workstation |
| 45 | If you are running the engine on your workstation and are connected to the |
| 46 | client device via USB, you'll need remote port forwarding to allow the Blimp |
| 47 | client to talk to your computer. Follow the instructions |
| 48 | [here](https://developer.chrome.com/devtools/docs/remote-debugging) to get |
| 49 | started. You'll probably want to remap 25467 to "localhost:25467". |
marcinjb | 446acf65 | 2016-01-15 22:18:36 | [diff] [blame] | 50 | |
| 51 | ### Required flags |
| 52 | * `--blimp-client-token-path=$PATH`: Path to a file containing a nonempty |
| 53 | token string. If this is not present, the engine will fail to boot. |
dtrainor | 6df6164 | 2016-02-19 16:10:25 | [diff] [blame^] | 54 | |