From 27ada9fb726420b76f7a8d2f75822c826217a784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Wed, 14 Jun 2023 13:12:39 +0100 Subject: [PATCH] Remove deprecated script and instructions to update esptool ***NO_CI*** --- .../UPDATE ESPTOOL.txt | 17 ------- .../update_esptool.ps1 | 48 ------------------- nanoFirmwareFlasher.Library/update_esptool.sh | 40 ---------------- 3 files changed, 105 deletions(-) delete mode 100644 nanoFirmwareFlasher.Library/UPDATE ESPTOOL.txt delete mode 100644 nanoFirmwareFlasher.Library/update_esptool.ps1 delete mode 100644 nanoFirmwareFlasher.Library/update_esptool.sh diff --git a/nanoFirmwareFlasher.Library/UPDATE ESPTOOL.txt b/nanoFirmwareFlasher.Library/UPDATE ESPTOOL.txt deleted file mode 100644 index b3fbb9d1..00000000 --- a/nanoFirmwareFlasher.Library/UPDATE ESPTOOL.txt +++ /dev/null @@ -1,17 +0,0 @@ -Notes on Esptool - -Esptool is available from https://github.com/espressif/esptool - -Esptool folder (in the Solution) contains the required files to run the tool embedded on the nanoFramework firmware flasher tool. - -** IMPORTANT ** -All files have to be added to the project as embedded resources and marked as copy to output folder. Failing to set both will prevent Costura to add them to the tool assembly. - -** Update Esptool ** - -When a new release of Esptool is available, the contents of the Esptool folder can be updated by running the update_esptool.ps1 PowerShell. - -** requirements -- pip: install instructions @ https://pip.pypa.io/en/stable/installing/#upgrading-pip -- pypiwin32: pre-requisite for PyInstaller on Windows: install instructions @ https://pypi.org/project/pypiwin32/219/ -- PyInstaller: install instructions @ https://pyinstaller.readthedocs.io/en/stable/installation.html diff --git a/nanoFirmwareFlasher.Library/update_esptool.ps1 b/nanoFirmwareFlasher.Library/update_esptool.ps1 deleted file mode 100644 index d2af2f0c..00000000 --- a/nanoFirmwareFlasher.Library/update_esptool.ps1 +++ /dev/null @@ -1,48 +0,0 @@ -# -# Copyright (c) .NET Foundation and Contributors -# See LICENSE file in the project root for full license information. -# - - -# requirements -# pip: install instructions @ https://pip.pypa.io/en/stable/installing/#upgrading-pip -# pypiwin32: pre-requisite for PyInstaller on Windows: install instructions @ https://pypi.org/project/pypiwin32/219/ -# PyInstaller: install instructions @ https://pyinstaller.readthedocs.io/en/stable/installation.html - - -# move to destination path -$repoPath = Join-Path -Path $PSScriptRoot -ChildPath "\.." -Resolve -$libPath = Join-Path -Path $repoPath -ChildPath "lib" - -Set-Location $libPath - -Write-Host "" -Write-Host "Install esptool..." -Write-Host "" - -# install esptool via pip into esptool-python -pip install --target=esptool-python esptool - -Write-Host "" -Write-Host "Packaging esptool Python in Windows executable..." -Write-Host "" - -# create a package that can run esptool without python via PyInstaller -pyinstaller --specpath "esptool-python" --distpath "esptool__" --workpath "esptool-python\build" "esptool-python\esptool.py" - -# copy esptool files -Get-ChildItem "esptool__\esptool" -File -Recurse | Copy-Item -Destination "esptool" -Force - -# clean up working folders -Remove-Item -Path esptool-python -Recurse -Force -Remove-Item -Path esptool__ -Recurse -Force - -Write-Host "" -Write-Host "Esptool folder updated!" -ForegroundColor Green -Write-Host "" - -Write-Host "***************************************************************" -ForegroundColor Yellow -Write-Host "* MAKE SURE THAT ALL FILES ARE AVAILABLE IN SOLUTION EXPLORER *" -ForegroundColor Yellow -Write-Host "* AS EMBEDDED RESOURCES AND MARKED AS COPY TO OUTPUT FOLDER *" -ForegroundColor Yellow -Write-Host "***************************************************************" -ForegroundColor Yellow -Write-Host "" \ No newline at end of file diff --git a/nanoFirmwareFlasher.Library/update_esptool.sh b/nanoFirmwareFlasher.Library/update_esptool.sh deleted file mode 100644 index 966e1b56..00000000 --- a/nanoFirmwareFlasher.Library/update_esptool.sh +++ /dev/null @@ -1,40 +0,0 @@ -echo "Make sure you have Python3 installed" - -echo "" -echo "Install esptool..." -echo "" - -# make sure you have pip installed -curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py -python3 get-pip.py - -echo "If you get an error message at the next line, try to add pip path to the path:" -echo "export PATH=$PATH:/path/to/pip" - -# install esptool via pip into esptool-python -pip install --target=esptool-python esptool - -echo "" -echo "Packaging esptool Python in Windows executable..." -echo "" - -# create a package that can run esptool without python via PyInstaller -pyinstaller --specpath "esptool-python" --distpath "esptool__" --workpath "esptool-python\build" "esptool-python\esptool.py" - -# copy esptool files -echo "Replace Linux with Mac for Mac" -cp -R esptool__/esptool nanoFirmwareFlasher/lib/esptool/esptoolLinux - -# clean up working folders -rm -rf esptool-python -rm -rf esptool__ - -echo "" -echo "Esptool folder updated!" -echo "" - -echo "***************************************************************" -echo "* MAKE SURE THAT ALL FILES ARE AVAILABLE IN SOLUTION EXPLORER *" -echo "* AS EMBEDDED RESOURCES AND MARKED AS COPY TO OUTPUT FOLDER *" -echo "***************************************************************" -echo "" \ No newline at end of file