This commit is contained in:
21
build.sh
Normal file
21
build.sh
Normal file
@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
apt-get update
|
||||
apt-get -y install git
|
||||
|
||||
base_dir=$(pwd)
|
||||
|
||||
git clone https://github.com/arendst/Tasmota.git /tasmota
|
||||
|
||||
cd /tasmota
|
||||
|
||||
if [ -z "$TASMOTA_VERSION" ]; then
|
||||
TASMOTA_VERSION=$(wget -qO - https://api.github.com/repos/arendst/Tasmota/releases/latest | grep -oP 'tag_name"\s*:\s*"\K[^"]+')
|
||||
fi
|
||||
|
||||
git checkout $TASMOTA_VERSION
|
||||
|
||||
rm -f /tasmota/tasmota/user_config_override.h
|
||||
cp $base_dir/user_config_override.h /tasmota/tasmota/user_config_override.h
|
||||
|
||||
pio run -e tasmota
|
Reference in New Issue
Block a user