Release LanUps 0.1.2 with native installers and monitoring updates

This commit is contained in:
tongtong committed 2026-11-28 21:18:14 +08:00
1 parent 90c57f020f
commit 5bdc79d8e4
30 files changed
+751 -270

No files matched your search

+8 -3
View File
@@ -1,10 +1,13 @@
param(
[string[]]$Targets = @('win-x64','linux-x64','linux-arm64','osx-x64','osx-arm64'),
[ValidateSet('Aot','Trimmed','Pack')][string]$Mode = 'Pack'
[ValidateSet('Aot','Trimmed','Pack')][string]$Mode = 'Pack',
[switch]$Rpm
)
$ErrorActionPreference = 'Stop'
$root = (Resolve-Path (Join-Path $PSScriptRoot '..\..')).Path
$localDotnet = Join-Path $root '.dotnet\dotnet.exe'
$onWindows = $IsWindows -or $env:OS -eq 'Windows_NT'
$dotnetFilename = if ($onWindows) { 'dotnet.exe' } else { 'dotnet' }
$localDotnet = Join-Path (Join-Path $root '.dotnet') $dotnetFilename
$dotnet = if (Test-Path -LiteralPath $localDotnet) { $localDotnet } else { (Get-Command dotnet -ErrorAction Stop).Source }
if (Test-Path -LiteralPath $localDotnet) {
$env:DOTNET_CLI_HOME = Join-Path $root '.dotnet'
@@ -36,5 +39,7 @@ foreach ($rid in $Targets) {
} else { Move-Item -LiteralPath $temporary -Destination $output }
}
}
& python (Join-Path $PSScriptRoot 'native_packages.py') @Targets
$packageArguments = if ($Rpm) { @('--rpm') + $Targets } else { $Targets }
$python = if ($onWindows) { 'python' } else { 'python3' }
& $python (Join-Path $PSScriptRoot 'native_packages.py') @packageArguments
exit $LASTEXITCODE