mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: integrate appflowy-cloud (#3359)
* feat: draft: code dependency * chore: update ref * feat: signup using client_api * feat: support auto sign_in after sign_up if already confirmed(WIP) * chore: update collab commit id * chore: fix compile errors * chore: user AFServer trait to provide optional service * chore: refactor workspace * chore: disable aws config * chore: return ws connect * chore: update collab rev * chore: fmt and clippy * chore: fix test * chore: update chrono version * chore: add script to update the collab crates commit id * chore: update --------- Co-authored-by: nathan <nathan@appflowy.io>
This commit is contained in:
30
frontend/scripts/tool/update_collab_rev.sh
Executable file
30
frontend/scripts/tool/update_collab_rev.sh
Executable file
@ -0,0 +1,30 @@
|
||||
#!/bin/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")
|
||||
|
||||
for dir in "${directories[@]}"; do
|
||||
echo "Updating $dir"
|
||||
|
||||
cd "$dir"
|
||||
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
|
||||
for crate in "${collab_crates[@]}"; do
|
||||
echo "Updating $crate"
|
||||
cargo update -p $crate
|
||||
done
|
||||
|
||||
cd ..
|
||||
done
|
||||
|
Reference in New Issue
Block a user