update pake-cli.yml

This commit is contained in:
Tlntin
2023-03-18 11:51:09 +08:00
parent 277a9842fe
commit 552af668fc
2 changed files with 17 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ Write-Host "transparent: " $env:TRANSPARENT
Write-Host "fullscreen: " $env:FULLSCREEN
Write-Host "resize: " $env:RESIZE
Write-Host "is multi arch? only for Mac: " $env:MULTI_ARCH
Write-Host "targets type? only for Linux: " $env:TARGETS
Write-Host "===========================`n"
# init params
@@ -57,12 +58,17 @@ if ("$env:FULLSCREEN" -eq "true" ) {
${Params}="${Params} --resize"
}
# multi-arch
# multi-arch only for mac
if (($env:MULTI_ARCH -eq "true") -and ($IsMacOS)) {
rustup target add aarch64-apple-darwin
${Params}="${Params} --multi-arch"
}
# targets type, only for linux
if (($null -ne $env:TARGETS) -and ($env:TARGETS -ne "") -and ($IsLinux)) {
${Params}="${Params} --targets $env:TARGETS"
}
Write-Host "Pake parameters is: ${Params}"
Write-Host "compile...."
Invoke-Expression $Params