mirror of
https://github.com/Insality/druid.git
synced 2025-09-28 10:32:20 +02:00
Solve #119 Add script for create custom component
This commit is contained in:
14
editor_scripts/create_druid_component.sh
Normal file
14
editor_scripts/create_druid_component.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
# @license MIT, Insality 2022
|
||||
# @source https://github.com/Insality/druid
|
||||
|
||||
echo "Run bash for $1"
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
|
||||
is_defree_installed=$(pip3 list --disable-pip-version-check | grep -E "deftree")
|
||||
if [ -z "$is_defree_installed" ]; then
|
||||
echo "The python deftree is not installed. Installing..."
|
||||
pip3 install deftree
|
||||
fi
|
||||
|
||||
python3 $DIR/create_druid_component.py $@
|
Reference in New Issue
Block a user