1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 10:01:38 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Fix build time string type

This commit is contained in:
sunnylqm
2019-10-06 22:04:00 +08:00
parent f1178ce8a2
commit f9ff690157

View File

@@ -4,6 +4,6 @@ set -x
# DEST=$CONFIGURATION_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH
# date +%s > "$DEST/pushy_build_time.txt"
OLD_TEXT="NSString \*pushy_build_time"
NEW_TEXT=" NSString \*pushy_build_time = $(date +%s)"
NEW_TEXT=" NSString \*pushy_build_time = @\"$(date +%s)\";"
TARGET_FILE="../../node_modules/react-native-update/ios/RCTHotUpdate/RCTHotUpdate.m"
sed -i '' -e "s/.*$OLD_TEXT.*/$NEW_TEXT/" "$TARGET_FILE"