update powershell script

This commit is contained in:
eZio Pan 2024-04-24 20:56:57 +08:00
parent 192a897665
commit 051bdfa68a

4
d.ps1
View File

@ -6,13 +6,15 @@ param (
[string]$peri [string]$peri
) )
$REV="74b97817d4c4ed0db9d19a8eac46720b3c5b0d57"
Switch ($CMD) Switch ($CMD)
{ {
"download-all" { "download-all" {
rm -r -Force ./sources/ -ErrorAction SilentlyContinue rm -r -Force ./sources/ -ErrorAction SilentlyContinue
git clone https://github.com/embassy-rs/stm32-data-sources.git ./sources/ git clone https://github.com/embassy-rs/stm32-data-sources.git ./sources/
cd ./sources/ cd ./sources/
git checkout a2062c088cf299bd3dc5128eeaa96e07fff2087c git checkout $REV
cd .. cd ..
} }
"install-chiptool" { "install-chiptool" {