Initial commit

This commit is contained in:
admin1
2026-07-14 11:11:36 +08:00
commit 656499cf94
604 changed files with 119518 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
param(
[Parameter(Mandatory = $true)]
[ValidateSet('pc', 'windows', 'android', 'both')]
[string]$Platform,
[switch]$DryRun,
[switch]$NoPush,
[string]$Remote = 'origin'
)
$ErrorActionPreference = 'Stop'
$projectRoot = Split-Path -Parent $PSScriptRoot
$arguments = @(
(Join-Path $PSScriptRoot 'version.dart'),
'tag',
$Platform,
'--project-root',
$projectRoot,
'--remote',
$Remote
)
if ($DryRun) { $arguments += '--dry-run' }
if ($NoPush) { $arguments += '--no-push' }
& dart @arguments
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }