This commit is contained in:
Matheus Eduardo Garbelini 2021-09-07 08:45:07 +08:00
parent 9fb73c16c3
commit deb87fab6d
2 changed files with 5 additions and 3 deletions

View file

@ -17,7 +17,7 @@ system_name = platform.system()
is_linux = system_name == 'Linux' or system_name == 'Darwin'
firmware_path = sys.path[0] / Path('firmware')
pio_build_path = Path('.pio/build/esp32doit-devkit-v1-serial/')
runtime_path = Path(os.path.dirname(sys.executable))
def has_pio():
if is_linux:
@ -119,6 +119,8 @@ if __name__ == "__main__":
os.chdir(firmware_path)
enable_build = is_source_project()
home_path = str(Path.home())
# Add runtime bin to path
os.environ['PATH'] = str(runtime_path) + os.pathsep + os.environ['PATH']
if is_linux:
# Fix locale

View file

@ -5,8 +5,8 @@ sudo apt install cmake clang software-properties-common -y
echo -e "\n\nInstalling latest stable wireshark"
sudo add-apt-repository --yes ppa:wireshark-dev/stable
sudo add-apt-repository --y ppa:wireshark-dev/stable
sudo apt-get update
sudo apt install wireshark -y
sudo apt install wireshark-dev -y
echo "Done! Run build.sh to build project"