Skip to content

Commit fa53af6

Browse files
add cmake check
1 parent a8ffa57 commit fa53af6

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.yarnrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
nodeLinker: node-modules
22

33
yarnPath: .yarn/releases/yarn-3.6.4.cjs
4+
5+
checksumBehavior: update

packages/engine-rn-tvos/templates/platforms/tvos/Podfile

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
1-
21
source 'https://github.com/react-native-tvos/react-native-tvos-podspecs.git'
32
source 'https://cdn.cocoapods.org/'
43
{{INJECT_PLUGIN_PODFILE_SOURCES}}
54

5+
6+
cmake_path = `command -v cmake`
7+
if cmake_path == ""
8+
brew_path = `command -v brew`
9+
if brew_path != ""
10+
Pod::UI.puts "Installing CMake using brew. This is required to build project.".red
11+
`brew install cmake`
12+
else
13+
Pod::UI.puts "In order to build project locally, you need cmake installed, please install it and try again".red
14+
return
15+
end
16+
else
17+
Pod::UI.puts "Cmake found at: #{cmake_path}".green
18+
end
19+
20+
621
# Resolve react_native_pods.rb with node to allow for hoisting
722
def node_require(script)
823
# Resolve script with node to allow for hoisting

0 commit comments

Comments
 (0)