feat : persian calendar and date picker
This commit is contained in:
17
tools/copyAssets.sh
Normal file
17
tools/copyAssets.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
SOURCE_FILE="lib/presentation/common/assets.dart"
|
||||
TARGET_DIR="packages/core/lib/presentation/common/assets.dart"
|
||||
|
||||
echo "--- Starting File Operations ---"
|
||||
|
||||
echo " 💀 Attempting to delete '$FILE_PATH_TO_DELETE'..."
|
||||
rm -fv "$FILE_PATH_TO_DELETE"
|
||||
echo "✅ Deletion step complete (file removed if it existed)."
|
||||
|
||||
|
||||
|
||||
|
||||
echo "Attempting to copy source(s) to '$TARGET_DIR'..."
|
||||
|
||||
1
tools/runner.sh
Normal file
1
tools/runner.sh
Normal file
@@ -0,0 +1 @@
|
||||
dart run build_runner build --delete-conflicting-outputs
|
||||
33
tools/vecGeneratoe.sh
Normal file
33
tools/vecGeneratoe.sh
Normal file
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Directory to read files from
|
||||
sourcePath="assets/icons"
|
||||
targetPath="assets/vec"
|
||||
|
||||
|
||||
if [ ! -e "$targetPath" ]; then
|
||||
echo "📁 Directory does not exist. Creating: $targetPath"
|
||||
mkdir -p "$targetPath"
|
||||
fi
|
||||
|
||||
|
||||
# Loop and delete old vec file
|
||||
for file in "$targetPath"/*
|
||||
do
|
||||
if [ -f "$file" ]; then
|
||||
|
||||
echo "Delete old ===> $file"
|
||||
rm "$file"
|
||||
fi
|
||||
done
|
||||
# Loop through all files in the directory
|
||||
for file in "$sourcePath"/*
|
||||
do
|
||||
if [ -f "$file" ]; then
|
||||
echo "Generate Vec file ===> $file"
|
||||
fileName=$(basename -- "$file")
|
||||
echo "Generate Vec file ===> $fileName"
|
||||
dart run vector_graphics_compiler -i "$file" -o "$targetPath/$fileName.vec"
|
||||
git add .
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user