supervisor/scripts/update-frontend.sh
Wendelin 0714d7845a
Bump frontend 2024.10.29 (#5374)
* Bump frontend 2024.10

* Bump frontend 2024.10.29
2024-10-30 08:29:57 -04:00

27 lines
484 B
Bash
Executable File

#!/bin/bash
source "/etc/supervisor_scripts/common"
set -e
# Update frontend
git submodule update --init --recursive --remote
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
cd home-assistant-polymer
nvm install
script/bootstrap
# Download translations
./script/translations_download
# build frontend
cd hassio
./script/build_hassio
# Copy frontend
rm -rf ../../supervisor/api/panel/*
cp -rf build/* ../../supervisor/api/panel/
# Reset frontend git
cd ..
git reset --hard HEAD