react-native-macos/scripts/hermes
Héctor Ramos 31bedd9815 Add hermes/create-tarball.js script (#34875)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/34875

Create common script for generating a Hermes tarball after Hermes is built from source.

Use after building Hermes from source to create a tarball of the resulting build artifacts. The path to the tarball can be passed to CocoaPods via a `HERMES_ENGINE_TARBALL_PATH` envvar in order to use these pre-built Hermes artifacts when installing the `hermes-engine` pod with `pod install`.

Use in Circle CI when creating a Hermes tarball for caching and for use in stable React Native releases.

Usage:

```
pod install

# When Hermes is built from source via CocoaPods, the build artifacts will be located in the Pods directory for hermes-engine

node ./scripts/hermes/create-tarball.js \
  --inputDir ./sdks/hermes \
  --buildType Debug \
  --releaseVersion 1000.0.0 \
  --outputDir .
```

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D40124378

fbshipit-source-id: f9712e87526ccc737afac4599b0ab0a7bb3f3956
2022-10-07 10:21:25 -07:00
..
bump-hermes-version.js
create-tarball.js Add hermes/create-tarball.js script (#34875) 2022-10-07 10:21:25 -07:00
get-tarball-name.js Add hermes/create-tarball.js script (#34875) 2022-10-07 10:21:25 -07:00
hermes-utils.js Add hermes/create-tarball.js script (#34875) 2022-10-07 10:21:25 -07:00
prepare-hermes-for-build.js Simplify logic to choose if we need to build hermes from source or not. (#34232) 2022-07-22 02:13:47 -07:00