chore: initial sanitized public snapshot
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
param(
|
||||
[string]$Tag = "aria2-rust-pro:local",
|
||||
[string]$OutputRoot,
|
||||
[switch]$Build
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
Set-StrictMode -Version Latest
|
||||
|
||||
$repoRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
|
||||
$xtaskManifest = Join-Path $repoRoot "xtask\Cargo.toml"
|
||||
|
||||
$arguments = @(
|
||||
"cargo",
|
||||
"run",
|
||||
"--manifest-path",
|
||||
$xtaskManifest,
|
||||
"--",
|
||||
"docker",
|
||||
"export-local",
|
||||
"--tag",
|
||||
$Tag
|
||||
)
|
||||
|
||||
if (-not [string]::IsNullOrWhiteSpace($OutputRoot)) {
|
||||
$arguments += @("--output-root", $OutputRoot)
|
||||
}
|
||||
if ($Build) {
|
||||
$arguments += "--build"
|
||||
}
|
||||
|
||||
rtk @arguments
|
||||
Reference in New Issue
Block a user