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

添加buildTime

This commit is contained in:
sunnylqm
2019-10-06 21:56:58 +08:00
parent 6eb731b6fb
commit c638cd45ac
9 changed files with 45 additions and 6 deletions

View File

@@ -0,0 +1,9 @@
#!/bin/bash
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)"
TARGET_FILE="../../node_modules/react-native-update/ios/RCTHotUpdate/RCTHotUpdate.m"
sed -i '' -e "s/.*$OLD_TEXT.*/$NEW_TEXT/" "$TARGET_FILE"