File update_source.sh of Package home-assistant-frontend
#!/bin/bash
echo ""
echo "XXX"
echo "XXX WARNING: THIS IS AN UNSECURE GROSS HACK!"
echo "XXX"
echo ""
echo "we need to download plenty nodejs modules here and run code outside of the build env..."
echo "do it only in some throw away environment which can not take over your system!"
echo ""
echo "consider this as a not reviewed, not license checked, not maintainable binary only blob!"
echo ""
set -e
# the build is not clean, we need to drop the copy therefore
# rm -rf home-assistant-polymer
osc service manualrun
rm -f *.obscpio
cd frontend
# download stuff
#export SKIP_FETCH_NIGHTLY_TRANSLATIONS=1
./script/bootstrap
./script/setup_translations
./script/build_frontend
cd -
# repackage archive with downloaded content
osc service manualrun
osc ar