37 lines
734 B
PowerShell
37 lines
734 B
PowerShell
param(
|
|
[string]$Tag = "aria2-rust-pro:smoke",
|
|
[bool]$Build = $true,
|
|
[int]$HostRpcPort = 26800,
|
|
[string]$RpcSecret = "smoke-secret",
|
|
[string]$SpecialMode = "move"
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
Set-StrictMode -Version Latest
|
|
|
|
$repoRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
|
|
$xtaskManifest = Join-Path $repoRoot "xtask\Cargo.toml"
|
|
$buildValue = $Build.ToString().ToLowerInvariant()
|
|
|
|
$arguments = @(
|
|
"cargo",
|
|
"run",
|
|
"--manifest-path",
|
|
$xtaskManifest,
|
|
"--",
|
|
"docker",
|
|
"smoke",
|
|
"--tag",
|
|
$Tag,
|
|
"--build",
|
|
$buildValue,
|
|
"--host-rpc-port",
|
|
"$HostRpcPort",
|
|
"--rpc-secret",
|
|
$RpcSecret,
|
|
"--special-mode",
|
|
$SpecialMode
|
|
)
|
|
|
|
rtk @arguments
|