Skip to content

Commit

Permalink
kudo's patch
Browse files Browse the repository at this point in the history
  • Loading branch information
kelset committed Sep 15, 2022
1 parent 4b9c857 commit 17c1d63
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions sdks/hermes-engine/hermes-engine.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ version = package['version']
isInCI = ENV['CI'] == true
hermestag_file = File.join(__dir__, "..", ".hermesversion")

ENV['REACT_NATIVE_PATH'] = File.join(__dir__, "..", "..")

# We need to check the current git branch/remote to verify if
# we're on a React Native release branch to actually build Hermes.
currentbranch, err = Open3.capture3("git rev-parse --abbrev-ref HEAD")
Expand Down Expand Up @@ -76,10 +78,10 @@ Pod::Spec.new do |spec|
#{File.exist?(import_hermesc_file) ? "echo \"Overriding HermesC path...\"" : ""}
# Build iOS framework
./utils/build-ios-framework.sh
$REACT_NATIVE_PATH/sdks/hermes-engine/utils/build-ios-framework.sh
# Build Mac framework
./utils/build-mac-framework.sh
$REACT_NATIVE_PATH/sdks/hermes-engine/utils/build-mac-framework.sh
EOS
end
end
3 changes: 2 additions & 1 deletion sdks/hermes-engine/utils/build-ios-framework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
# LICENSE file in the root directory of this source tree.

# shellcheck source=xplat/js/react-native-github/sdks/hermes-engine/utils/build-apple-framework.sh
. ./utils/build-apple-framework.sh
CURR_SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
. ${CURR_SCRIPT_DIR}/build-apple-framework.sh

if [ ! -d destroot/Library/Frameworks/universal/hermes.xcframework ]; then
ios_deployment_target=$(get_ios_deployment_target)
Expand Down
3 changes: 2 additions & 1 deletion sdks/hermes-engine/utils/build-mac-framework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
# LICENSE file in the root directory of this source tree.

# shellcheck source=xplat/js/react-native-github/sdks/hermes-engine/utils/build-apple-framework.sh
. ./utils/build-apple-framework.sh
CURR_SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
. ${CURR_SCRIPT_DIR}/build-apple-framework.sh

if [ ! -d destroot/Library/Frameworks/macosx/hermes.framework ]; then
mac_deployment_target=$(get_mac_deployment_target)
Expand Down

0 comments on commit 17c1d63

Please sign in to comment.