mirror of https://github.com/DJ2LS/FreeDATA
Add setup_python_node script to run create scripts.
This commit is contained in:
parent
2b19ca854f
commit
d2104a306a
|
@ -21,6 +21,7 @@ done
|
|||
# Verify it's there.
|
||||
if [ ! -x ${CHOSEN} ]; then
|
||||
echo "Error: ${CHOSEN} is not executable or does not exist."
|
||||
echo "Note: FreeDATA requires Python 3 (higher than version 3.6)."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
if [ ! -d "tnc" ]; then
|
||||
echo "Error: Run this script from the main FreeDATA directory."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
HERE="$(pwd)"
|
||||
|
||||
echo "Running Python and NodeJS setup scripts for FreeDATA..."
|
||||
|
||||
bash tools/create_python_env.sh
|
||||
bash tools/create_node_env.sh
|
||||
|
||||
echo "Both Python and NodeJS were setup correctly."
|
||||
echo ""
|
||||
echo "Run the following to add the new Python environment to your path:"
|
||||
echo "source ${HERE}/.venv/activate"
|
||||
echo ""
|
||||
echo "Run the following to add the new NodeJS environment to your path:"
|
||||
echo "PATH=\${PATH}:${HERE}/gui/node_modules/bin:${HERE}/gui/node_modules/.bin"
|
Loading…
Reference in New Issue