mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 13:23:12 +08:00 
			
		
		
		
	添加buildTime
This commit is contained in:
		
							
								
								
									
										9
									
								
								scripts/generateiOSBuildTime.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										9
									
								
								scripts/generateiOSBuildTime.sh
									
									
									
									
									
										Executable 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" | ||||
		Reference in New Issue
	
	Block a user
	 sunnylqm
					sunnylqm