mirror of
				https://github.com/home-assistant/supervisor.git
				synced 2025-10-31 06:29:35 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			510 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			510 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
 | |
| start_docker
 | |
| ./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
 | |
| 
 | |
| stop_docker | 
