7 lines
345 B
PowerShell
7 lines
345 B
PowerShell
param([string]$Data = "$PSScriptRoot\..\server-data")
|
|
$ErrorActionPreference = 'Stop'
|
|
if (-not $env:REMOTE_BUILD_TOKEN -or $env:REMOTE_BUILD_TOKEN.Length -lt 24) {
|
|
throw '请先通过环境变量配置至少 24 字符的 REMOTE_BUILD_TOKEN'
|
|
}
|
|
& "$PSScriptRoot\..\dist\remotecompile-windows-amd64.exe" -data $Data -tasks ':app:assembleDebug'
|