Difficult-Rocket/build_rs.ps1

29 lines
507 B
PowerShell
Raw Permalink Normal View History

2023-05-02 17:23:02 +08:00
Set-Location .\mods\dr_game\Difficult_Rocket_rs\src
2023-01-31 22:07:18 +08:00
2023-02-12 12:26:18 +08:00
Write-Output $args[0]
$do = 0
if ("38" -notin $args -and "39" -notin $args -and "310" -notin $args -and "311" -notin $args) {
$do = 1
}
2023-04-01 18:19:25 +08:00
cargo fmt
2023-02-12 12:26:18 +08:00
if ($do -or "38" -in $args) {
python3.8 setup.py build
}
if ($do -or "39" -in $args) {
python3.9 setup.py build
}
if ($do -or "310" -in $args) {
python3.10 setup.py build
}
if ($do -or "311" -in $args) {
python3.11 setup.py build
}
2023-01-31 22:07:18 +08:00
2023-05-01 21:24:16 +08:00
python3.8 post_build.py
2023-01-31 22:07:18 +08:00
2023-05-02 17:23:02 +08:00
Set-Location ..\..\..\..\