File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,11 @@ Expand-Archive $outputMac -DestinationPath $env:TEMP -Force > $null
4646Expand-Archive $outputLinux - DestinationPath $env: TEMP - Force > $null
4747" OK" | Write-Host - ForegroundColor Green
4848
49+ # clean destination folders
50+ Remove-Item - Path (Join-Path - Path $PSScriptRoot - ChildPath " lib\esptool\esptoolWin" - Resolve) - Include * .* - Force - Recurse
51+ Remove-Item - Path (Join-Path - Path $PSScriptRoot - ChildPath " lib\esptool\esptoolMac\LICENSE" - Resolve) - Include * .* - Force - Recurse
52+ Remove-Item - Path (Join-Path - Path $PSScriptRoot - ChildPath " lib\esptool\esptoolLinux\LICENSE" - Resolve) - Include * .* - Force - Recurse
53+
4954# copy files to the correct locations
5055" Copying files to tools folders..." | Write-Host - ForegroundColor White - NoNewline
5156Move-Item - Path (Join-Path - Path $env: TEMP - ChildPath " esptool-$version -win64\**" - Resolve) - Destination (Join-Path - Path $PSScriptRoot - ChildPath " lib\esptool\esptoolWin" - Resolve)
You can’t perform that action at this time.
0 commit comments