fix(release): auto-increment patch and build number for Android and Windows releases

This commit is contained in:
ssbg04 committed 2026-09-15 23:07:10 +08:00
1 parent 14c6193367
commit 49af400c89
4 files changed
+47 -13

No files matched your search

+7
View File
@@ -206,6 +206,13 @@ jobs:
-Encoding utf8 `
-Append
# Sync calculated version and build number into pubspec.yaml
$pubspecPath = "frontend/pubspec.yaml"
$pubContent = Get-Content $pubspecPath
$updatedPub = $pubContent -replace '^version:.*', "version: $verName+$buildNumber"
Set-Content -Path $pubspecPath -Value $updatedPub -Encoding utf8
Write-Host "Updated $pubspecPath to version: $verName+$buildNumber"
# ------------------------------------------------------------
# Manual Release Tag
# ------------------------------------------------------------