mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-02 22:44:17 +01:00
Resolve the issue with the UnixHostDuino not really being compatible with the esp8266 Core String (...and the rest of the Core, as well) Port the CMakeLists.txt from the rpnlib and update it use FetchContent instead of either manually fetching dependencies or using PIO artifacts Caching is *expected* to work, but might need slight adjustments
41 lines
488 B
Bash
Executable File
41 lines
488 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -x -e -v
|
|
|
|
npm_install() {
|
|
npm install -g npm@latest
|
|
npm ci
|
|
}
|
|
|
|
pio_install() {
|
|
pip3 install -U platformio
|
|
pio upgrade --dev
|
|
pio platform update -p
|
|
}
|
|
|
|
host_install() {
|
|
sudo apt install cmake
|
|
}
|
|
|
|
cd code
|
|
|
|
case "$1" in
|
|
("host")
|
|
host_install
|
|
;;
|
|
("webui")
|
|
npm_install
|
|
;;
|
|
("build")
|
|
pio_install
|
|
;;
|
|
("release")
|
|
npm_install
|
|
pio_install
|
|
;;
|
|
(*)
|
|
echo -e "\e[1;33mUnknown stage name, exiting!\e[0m"
|
|
exit 1
|
|
;;
|
|
esac
|