mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-10-31 10:03:18 +00:00 
			
		
		
		
	 7e1b77f872
			
		
	
	
		7e1b77f872
		
			
		
	
	
	
	
		
			
			* chore: migrate number type option * chore: migrate single select * chore: migrate multi select * chore: migrate date type option * chore: migrate timestamp type option * chore: support friendly full * chore: migrate media type option * chore: update collab * chore: update zip * chore: remove file * chore: fix build * chore: fix test
		
			
				
	
	
		
			36 lines
		
	
	
		
			956 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			956 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| 
 | |
| # Ensure a new revision ID is provided
 | |
| if [ "$#" -ne 1 ]; then
 | |
|     echo "Usage: $0 <new_revision_id>"
 | |
|     exit 1
 | |
| fi
 | |
| 
 | |
| NEW_REV="$1"
 | |
| echo "New revision: $NEW_REV"
 | |
| directories=("rust-lib" "appflowy_tauri/src-tauri" "appflowy_web_app/src-tauri")
 | |
| 
 | |
| for dir in "${directories[@]}"; do
 | |
|     echo "Updating $dir"
 | |
|     pushd "$dir" > /dev/null
 | |
| 
 | |
|     sed -i.bak "/^collab[[:alnum:]-]*[[:space:]]*=/s/rev = \"[a-fA-F0-9]\{6,40\}\"/rev = \"$NEW_REV\"/g" Cargo.toml
 | |
| 
 | |
|     # Detect changed crates
 | |
|     collab_crates=($(grep -E '^collab[a-zA-Z0-9_-]* =' Cargo.toml | awk -F'=' '{print $1}' | tr -d ' '))
 | |
| 
 | |
|     # Update only the changed crates in Cargo.lock
 | |
| 
 | |
|     crates_to_update=""
 | |
|     for crate in "${collab_crates[@]}"; do
 | |
|         crates_to_update="$crates_to_update -p $crate"
 | |
|     done
 | |
| 
 | |
|     # Update all the specified crates at once
 | |
|     echo "Updating crates: $crates_to_update"
 | |
|     cargo update $crates_to_update 2> /dev/null
 | |
| 
 | |
|     popd > /dev/null
 | |
| done
 | |
| 
 |