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

改进ios生成build time

This commit is contained in:
sunnylqm
2019-10-06 22:20:57 +08:00
parent f9ff690157
commit eb67431567
5 changed files with 13 additions and 11 deletions

View File

@@ -1,9 +1,5 @@
#!/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"
DEST="../../node_modules/react-native-update/ios"
date +%s > "$DEST/pushy_build_time.txt"