mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 13:23:12 +08:00 
			
		
		
		
	改进ios生成build time
This commit is contained in:
		| @@ -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" | ||||
		Reference in New Issue
	
	Block a user
	 sunnylqm
					sunnylqm