> For the complete documentation index, see [llms.txt](https://autoedit.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://autoedit.gitbook.io/documentation/master-1.0.6/appendix/deploymentbuild/deploymentbuild-for-max-os-x.md).

# Deployment/build for Max OS X

From terminal from root of app, run the deployment script

```
npm install
```

Then

```bash
npm run build:mac:dmg
```

It creates a `cache` and a `build` folder. `cache` is a folder used by deploy to keep the latest version needed to build and package the app, to avoid having to re-download it every time. While the packaged app ready for use can be found in the `build` folder.

This also packages the app as a `dmg` for distribution on os x.

Which uses [`appdmg`](https://www.npmjs.com/package/appdmg) to put the app from the build folder inside a `dmg` and save it on the `~/Desktop`.

Preferences for `appdmg` script are in `/appdmg.json`.
