package.sh 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #
  2. # Copyright (c) Contributors to the Open 3D Engine Project.
  3. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. #
  5. # SPDX-License-Identifier: Apache-2.0 OR MIT
  6. #
  7. #
  8. # This script is meant to export the project into a standalone shippable project that others can run.
  9. # However, the project developer is expected to modify it to add steps or change it to their needs.
  10. # To get more information about the possible tweakable parameters, run
  11. # (engine folder)/scripts/o3de.sh export-project -es ExportScripts/export_source_built_project.py --script-help
  12. # The output of this script will be placed in the "ProjectPackages" folder and will include
  13. # * A standalone version of the project game client, shippable, with all the assets and binaries
  14. # * A standalone version of the project server (if the project has one), shippable, with all the assets and binaries
  15. # * A standalone version of the project's "Unified" (Client + 'listen' Server), with assets and binaries
  16. # * zip files of each of the above (based on the --archive-output zip) option below - xz, bz2, gzip and 'none'
  17. # are also available.
  18. O3DE_PATH=${EnginePath}
  19. O3DE_PROJECT_PATH=${ProjectPath}
  20. # The seedlist is a list of assets that will be included in the package (it automatically computes dependencies
  21. # based on these assets and will include dependencies recusively on anything in the seed list. Modify it
  22. # to include your own 'root' assets that you want to include in the package using the AssetBundler tool
  23. O3DE_PROJECT_SEEDLIST=${O3DE_PROJECT_PATH}/AssetBundling/SeedLists/Example.seed
  24. OUTPUT_PATH=${O3DE_PROJECT_PATH}/ProjectPackages
  25. # change this to release, profile, or debug
  26. # (Only works if the installer you have actually includes release, profile or debug binaries)
  27. # note that script-only-projects cannot support monolithic configurations and the default installer
  28. # only includes monolithic release configuration (along with non-monolithic debug and profile).
  29. # you can build your own installer that has non-monolithic release, and then use release, in that case,
  30. # but otherwise, stick to either profile or debug.
  31. OUTPUT_CONFIGURATION=profile
  32. ${O3DE_PATH}/scripts/o3de.sh export-project -es ExportScripts/export_source_built_project.py --project-path ${O3DE_PROJECT_PATH} -nomono --log-level INFO -assets --config ${OUTPUT_CONFIGURATION} --archive-output zip --seedlist ${O3DE_PROJECT_SEEDLIST} -out ${OUTPUT_PATH}