From cd104a17ff57925455bb78083de4281084e919b8 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Thu, 21 Sep 2023 05:12:38 -0700 Subject: [PATCH] Fix local e2e script by copying the hermes' ruby files to the right folder (#39580) Summary: 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 --- scripts/testing-utils.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/testing-utils.js b/scripts/testing-utils.js index be4bc78b9c7f61..af996674de5d79 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/.`,