# Defold-Deployer

**URL:** <https://forum.defold.com/t/defold-deployer/62704>\
**Category:** The Defoldmine\
**Created:** [September 12, 2019, 7:19pm UTC](https://forum.defold.com/t/defold-deployer/62704 "2019-09-12T19:19:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Insality](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/insality/32/39737_2.png) [@Insality](https://forum.defold.com/u/Insality)\
**Post date:** [September 12, 2019, 7:19pm UTC](https://forum.defold.com/t/defold-deployer/62704/1 "2019-09-12T19:19:42Z")

</div>

![defold-deployer](https://forum-defold-uploads.b-cdn.net/original/3X/c/b/cbe1829cfd030ea417a300ed002d1ab187da6f49.png)

# Defold-Deployer

I have the build/deploy bash script for all my Defold project. So, I want to publish it now  
(yea, yet another builder script 😃)

How to install and full instructions see on github:  
**Github link** : [GitHub - Insality/defold-deployer: Universal build && deploy script for Defold projects · GitHub](https://github.com/Insality/defold-deployer)

## Features

- Single deployment script on all Defold projects (Android, iOS, HTML5, Linux, MacOS, Windows)
- One command to build, deploy and read logs from the mobile
- Global and custom settings on project (provisions, bob version, etc)
- Save your time on preparing debug && release builds
- Nice naming builds to save history of product versions
- Auto _bob.jar_ downloading. Flag **use\_latest\_bob** for using always last version of _Defold_
- Select Bob channel (stable/beta/alpha) and Defold build server via settings file
- Use incremental value for last number in version (enable via _enable incremental version_ )
- Headless build && run for your unit-tests on CI

- Add additional info to _game.project_: _project.commit\_sha_ and _project.build time_

- Android Instant build in one command ( `deployer abr --instant` )
- Redownload dependencies, if they are corrupted

## Usage

`bash deployer.sh [a][i][h][w][l][m][r][b][d] [--fast] [--no-resolve] [--instant] [--settings {filename}] [--headless]`

- `a` - add target platform Android
- `i` - add target platform iOS
- `h` - add target platform HTML5
- `w` - add target platform Windows
- `l` - add target platform Linux
- `m` - add target platform MacOS
- `r` - set build mode to Release
- `b` - build project (game bundle will be in ./dist/bundle/ folder)
- `d` - deploy bundle && run to connected device. Auto start logging from connected device (only start bundle on dekstop builds)
- `--settings {filename}` - add settings file to build params. Can be used several times
- `--fast` - build without resolve and only one Android platform (for faster builds)
- `--headless` - set mode to headless. Override release mode
- `--no-resolve` - build without dependency resolve
- `--instant` - it preparing bundle for Android Instant Apps. Always in release mode

For example, the most popular command for me:  
`deployer adb` - build debug android build, deploy and run bundle on connected device + start logging to console
