mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-26 09:13:33 +03:00
script to avoid running pod install on android platform
This commit is contained in:
parent
67e183f256
commit
d4ad1714fa
@ -15,4 +15,19 @@ node -v
|
||||
#nvm alias default v8.16.0
|
||||
#node -v
|
||||
|
||||
printf "end of post-clone.sh\n"
|
||||
printf "end of post-clone.sh\n"
|
||||
|
||||
echo "Selected Platform to buit"
|
||||
echo "$PLATFORM"
|
||||
|
||||
#check if platform to be built for is android
|
||||
if [ "$PLATFORM" == "Android" ]; then
|
||||
# Read package.json into a variable
|
||||
package_json=$(<package.json)
|
||||
|
||||
# Remove 'pod install' from the current postinstall script
|
||||
updated_package_json=$(echo "$package_json" | sed 's/ && cd ios && pod install//g')
|
||||
|
||||
# Update package.json with the modified postinstall script
|
||||
echo "$updated_package_json" > package.json
|
||||
fi
|
Loading…
Reference in New Issue
Block a user