1 ### Instruction for generating Amazon Corretto installer
 2 
 3 #### Prerequisites
 4 
 5 The generation of the Corretto installer depends on an open-source utility tool [Packages](http://s.sudre.free.fr/Software/Packages/about.html).
 6 The application must be installed before running the installer generation task.
 7 
 8 There are two options to generate a Corretto installer.
 9 
10 #### Option 1: Build Corretto
11 * Under the root directory of the repository, run
12 ```
13 ./gradlew :installers:mac:pkg:generateInstaller
14 ```
15 
16 #### Option 2: Use pre-built Corretto artifacts
17 * Set the environment variable "CORRETTO_ARTIFACTS_PATH" to the path of the pre-built Corretto artifacts.
18 ```
19 export CORRETTO_ARTIFACTS_PATH=.../path/to/amazon-corretto-<version>.jdk
20 ```
21 * Under the root directory of the repository, run
22 ```
23 ./gradlew :installers:mac:pkg:generateInstaller
24 ```
25 
26 The installer will be generated under "<repo-root>/installers/mac/pkg/corretto-build/distributions".