A framework for building native applications using React
Normalise shell name/version strings, add commit hash when prebuilt (#53480)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/53480 Changelog: [Internal] Improves the way `--version` and the User-Agent header work in `debugger-shell`. * The same app name and version string format will be used across the `dev` and `prebuilt` flavours. Previously, `dev` would report itself as being `Electron v37.2.6` while `prebuilt` would report `react-native/debugger-shell v0.82.0-main`. * `prebuilt` now also reports the original Meta-internal commit hash as a suffix `-rFBS..........` added to the semver string taken from `package.json`, while `dev` will have a `-dev` suffix in the same place. * We do **not** modify the version in `package.json` during the build, nor do we pass the commit hash to `electron/packager`, because this would impose inconvenient platform-specific restrictions on the version string's format. Reviewed By: huntie Differential Revision: D81120181 fbshipit-source-id: e730dd35da78dfbb8de326f9a3ab76b747fdb0b3
M
Moti Zilberman committed
adf1b62c76dbdb47b09b30eccb3988e88ad8e949
Parent: 7eb3536
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 8/27/2025, 6:05:02 PM