fix some paths

This commit is contained in:
bunnie 2022-02-10 00:46:20 +08:00
parent 2c3425d3fa
commit b6b620b9b0

View file

@ -10,35 +10,35 @@ if ($decision -eq 0) {
Exit
}
Invoke-WebRequest https://ci.betrusted.io/latest/loader.bin -OutFile loader.bin
Invoke-WebRequest https://ci.betrusted.io/releases/latest/loader.bin -OutFile loader.bin
python usb_update.py -l loader.bin
Remove-Item /tmp/loader.bin
Remove-Item loader.bin
Write-Output "waiting for device to reboot"
Start-Sleep 5
Invoke-WebRequest https://ci.betrusted.io/latest/xous.img -OutFile xous.img
Invoke-WebRequest https://ci.betrusted.io/releases/latest/xous.img -OutFile xous.img
python usb_update.py -k xous.img
Remove-Item xous.img
Write-Output "waiting for device to reboot"
Start-Sleep 5
Invoke-WebRequest https://ci.betrusted.io/latest/soc_csr.bin -OutFile soc_csr.bin
Invoke-WebRequest https://ci.betrusted.io/releases/latest/soc_csr.bin -OutFile soc_csr.bin
python usb_update.py --soc soc_csr.bin --force
Remove-Item soc_csr.bin
Write-Output "waiting for device to reboot"
Start-Sleep 5
Invoke-WebRequest https://ci.betrusted.io/latest/ec_fw.bin -OutFile ec_fw.bin
Invoke-WebRequest https://ci.betrusted.io/releases/latest/ec_fw.bin -OutFile ec_fw.bin
python usb_update.py -e ec_fw.bin
Remove-Item soc_csr.bin
Remove-Item ec_fw.bin
Write-Output "waiting for device to reboot"
Start-Sleep 5
Invoke-WebRequest https://ci.betrusted.io/latest/wf200_fw.bin -OutFile wf200_fw.bin
Invoke-WebRequest https://ci.betrusted.io/releases/latest/wf200_fw.bin -OutFile wf200_fw.bin
python usb_update.py -w wf200_fw.bin
Remove-Item wf200_fw.bin