mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-06-29 02:03:10 -04:00
* chore: add gitkeep in assets/font dir * Revert "feat: improve white label scripts on Windows (#7755)" This reverts commita5eb2cdd9a
. * chore: use --verbose * fix: lose nested children when accept ai response * chore: lock analyzer version * Reapply "feat: improve white label scripts on Windows (#7755)" This reverts commitc73186306e
. * chore: lock analyzer version * chore: update editor version
75 lines
1.6 KiB
Bash
Executable file
75 lines
1.6 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
args=("$@")
|
|
|
|
# check the cost time
|
|
start_time=$(date +%s)
|
|
|
|
# read the arguments to skip the pub get and package get
|
|
skip_pub_get=false
|
|
skip_pub_packages_get=false
|
|
verbose=false
|
|
|
|
# Parse command line arguments
|
|
while [[ $# -gt 0 ]]; do
|
|
case "$1" in
|
|
--skip-pub-get)
|
|
skip_pub_get=true
|
|
shift
|
|
;;
|
|
--skip-pub-packages-get)
|
|
skip_pub_packages_get=true
|
|
shift
|
|
;;
|
|
--verbose)
|
|
verbose=true
|
|
shift
|
|
;;
|
|
--exclude-packages)
|
|
shift
|
|
;;
|
|
*)
|
|
echo "Unknown option: $1"
|
|
exit 1
|
|
;;
|
|
esac
|
|
done
|
|
|
|
# Store the current working directory
|
|
original_dir=$(pwd)
|
|
|
|
# Change the current working directory to the script's location
|
|
cd "$(dirname "$0")"
|
|
|
|
# Call the script in the 'language_files' folder
|
|
cd language_files
|
|
# Allow execution permissions on CI
|
|
chmod +x ./generate_language_files.sh
|
|
# Pass the arguments to the script
|
|
./generate_language_files.sh "${args[@]}"
|
|
|
|
# Return to the main script directory
|
|
cd ..
|
|
|
|
# Call the script in the 'flowy_icons' folder
|
|
cd flowy_icons
|
|
# Allow execution permissions on CI
|
|
chmod +x ./generate_flowy_icons.sh
|
|
./generate_flowy_icons.sh "${args[@]}"
|
|
|
|
# Return to the main script directory
|
|
cd ..
|
|
|
|
# Call the script in the 'freezed' folder
|
|
cd freezed
|
|
# Allow execution permissions on CI
|
|
chmod +x ./generate_freezed.sh
|
|
./generate_freezed.sh "${args[@]}" --show-loading --verbose
|
|
|
|
# Return to the original directory
|
|
cd "$original_dir"
|
|
|
|
# echo the cost time
|
|
end_time=$(date +%s)
|
|
cost_time=$((end_time - start_time))
|
|
echo "✅ Code generation cost $cost_time seconds."
|