mirror of
https://github.com/status-im/react-native-mapbox-gl.git
synced 2026-08-27 19:11:15 +00:00
add download preinstall step
This commit is contained in:
@@ -28,3 +28,6 @@ Pods/
|
||||
#
|
||||
node_modules/
|
||||
npm-debug.log
|
||||
|
||||
# project specific
|
||||
libMapboxGL.a
|
||||
|
||||
+2
-1
@@ -10,7 +10,8 @@
|
||||
],
|
||||
"private": false,
|
||||
"scripts": {
|
||||
"start": "node_modules/react-native/packager/packager.sh"
|
||||
"start": "node_modules/react-native/packager/packager.sh",
|
||||
"preinstall": "./scripts/download-mapbox-gl-native-ios.sh 0.2.16"
|
||||
},
|
||||
"dependencies": {
|
||||
"react-native": "^0.4.1"
|
||||
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
VERSION=$1
|
||||
|
||||
if ! which curl > /dev/null; then echo "curl command not found. Please install curl"; exit 1; fi;
|
||||
if ! which unzip > /dev/null; then echo "unzip command not found. Please install unzip"; exit 1; fi;
|
||||
|
||||
mkdir temp
|
||||
|
||||
curl -sS http://mapbox.s3.amazonaws.com/mapbox-gl-native/ios/builds/mapbox-gl-ios-$VERSION.zip > temp.zip
|
||||
unzip -o temp.zip -d temp
|
||||
mv libMapboxGL.a .
|
||||
rm -r temp
|
||||
rm temp.zip
|
||||
Reference in New Issue
Block a user