Create a runtime package

When your customization is ready, you need to build a GBC runtime package that your Genero development team can deploy on their development or production environments.

The command creates a zip file for the customization using the settings of the compile.mode and compile.customization parameters in gbc-project-dir/custom.json. To produce a GBC runtime package using the settings of the custom.json file, execute:

$ gbc build --create-zip

You may wish to switch modes (cdev, dev, prod). To accomplish this, either change the compile.mode parameter in gbc-project-dir/custom.json or use the --compile-mode option of the gbc build command.

You may wish to switch customizations. To accomplish this, either change the compile.customization parameter in gbc-project-dir/custom.json or use the --customization option of the gbc build command.

This example specifies both the mode and customization:

gbc build --customization customization/myCustomization --compile-mode prod --create-zip

The resulting GBC runtime package is located in gbc-project-dir/archive directory and named fjs-gbc-version.suffix-buildbuild-customization_customName.zip. You can deploy this package in the same manner as you deploy the standard runtime package provided by Four Js on the web site download center. See Deploy runtime on GAS.

NOTE: You can rename this file to something shorter and easier to manage.

By default, the customization suffix is "c". To change the suffix used for a customization, see Change the version customization suffix.