mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
ci: reduce build time (#3519)
This commit is contained in:
committed by
GitHub
parent
cd6e133c86
commit
25a98cda81
@ -15,7 +15,7 @@ REM the appflowy_flutter/assets/translation directory
|
||||
echo Copying resources/flowy_icons to appflowy_flutter/assets/flowy_icons
|
||||
xcopy /E /Y /I ..\resources\flowy_icons assets\flowy_icons
|
||||
|
||||
call flutter packages pub get
|
||||
REM call flutter packages pub get
|
||||
|
||||
echo Generating FlowySvg class
|
||||
call dart run flowy_svg
|
||||
|
@ -1,5 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
no_pub_get=false
|
||||
|
||||
while getopts 's' flag; do
|
||||
case "${flag}" in
|
||||
s) no_pub_get=true ;;
|
||||
esac
|
||||
done
|
||||
|
||||
echo "Generating flowy icon files"
|
||||
|
||||
# Store the current working directory
|
||||
@ -14,7 +22,9 @@ rm -rf assets/flowy_icons/
|
||||
mkdir -p assets/flowy_icons/
|
||||
rsync -r ../resources/flowy_icons/ assets/flowy_icons/
|
||||
|
||||
flutter packages pub get
|
||||
if [ "$no_pub_get" = false ]; then
|
||||
flutter packages pub get
|
||||
fi
|
||||
|
||||
echo "Generating FlowySvg classes"
|
||||
dart run flowy_svg
|
||||
|
Reference in New Issue
Block a user