ecency-mobile/appcenter-post-clone.sh

33 lines
743 B
Bash
Raw Normal View History

2019-10-14 15:08:22 +03:00
#!/usr/bin/env bash
2018-12-16 21:38:51 +03:00
2019-10-14 15:08:22 +03:00
printf "post-clone.sh\n"
2018-12-16 21:38:51 +03:00
2019-10-14 15:08:22 +03:00
node -v
2018-12-27 11:46:57 +03:00
2019-10-14 15:08:22 +03:00
# please specify required Node.js version
2020-03-24 14:56:41 +03:00
#NODE_VERSION=8.16.0
2018-12-16 22:15:10 +03:00
2019-10-14 15:08:22 +03:00
# workaround to override the v8 alias
2020-03-24 14:56:41 +03:00
#npm config delete prefix
#. ~/.bashrc
#nvm install "$NODE_VERSION"
#nvm alias node8 "$NODE_VERSION"
#nvm alias default v8.16.0
#node -v
2018-12-27 11:46:57 +03:00
printf "end of post-clone.sh\n"
2024-03-07 17:38:09 +03:00
echo "Selected Platform to buit"
echo "$PLATFORM"
echo "Removing postinstall pod install command"
# 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