mirror of
				https://github.com/esphome/esphome.git
				synced 2025-11-04 09:01:49 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			457 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			457 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
set -e
 | 
						|
# set -x
 | 
						|
 | 
						|
apt update
 | 
						|
apt-get install avahi-utils -y
 | 
						|
 | 
						|
mkdir -p config
 | 
						|
script/setup
 | 
						|
 | 
						|
cpp_json=.vscode/c_cpp_properties.json
 | 
						|
if [ ! -f $cpp_json ]; then
 | 
						|
    echo "Initializing PlatformIO..."
 | 
						|
    pio init --ide vscode --silent
 | 
						|
    sed -i "/\\/workspaces\/esphome\/include/d" $cpp_json
 | 
						|
else
 | 
						|
    echo "Cpp environment already configured. To reconfigure it you can run one the following commands:"
 | 
						|
    echo "  pio init --ide vscode"
 | 
						|
fi
 |