From 42d090c94c81da816dde95ea28cb489093599362 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Thu, 21 Sep 2023 07:36:28 -0700 Subject: [PATCH] Fix local e2e script by copying the hermes' ruby files to the right folder (#39580) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39580 While testing other features, I realized that the script to generate a project locally, starting from the template, has a bug for which we were using the outdated `hermes-engine.podspec` coming from the Hermes repo to build hermes. This change fixes this by moving our files to the right folder. ## Changelog: [Internal] - Fix local e2e test script copying hermes rubyscript over Reviewed By: dmytrorykun Differential Revision: D49497716 fbshipit-source-id: f1d582ec9d9c8007cbd2f9c876c061af12735f83 --- scripts/testing-utils.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/testing-utils.js b/scripts/testing-utils.js index be4bc78b9c7..af996674de5 100644 --- a/scripts/testing-utils.js +++ b/scripts/testing-utils.js @@ -216,6 +216,14 @@ function buildArtifactsLocally( // need to move the scripts inside the local hermes cloned folder // cp sdks/hermes-engine/utils/*.sh /utils/. + cp( + `${reactNativePackagePath}/sdks/hermes-engine/hermes-engine.podspec`, + `${reactNativePackagePath}/sdks/hermes/hermes-engine.podspec`, + ); + cp( + `${reactNativePackagePath}/sdks/hermes-engine/hermes-utils.rb`, + `${reactNativePackagePath}/sdks/hermes/hermes-utils.rb`, + ); cp( `${reactNativePackagePath}/sdks/hermes-engine/utils/*.sh`, `${reactNativePackagePath}/sdks/hermes/utils/.`,