Skip to content

Commit 0f89214

Browse files
seto77claude
andcommitted
Add a space between the version number and the date parenthesis
Change the version notation from "ver4.946(2026/08/05)" to "ver4.946 (2026/08/05)" and fix every consumer of the old format: - Version.cs: normalize all 318 History entries to "verX.XXX (date)", and make VersionAndDate/VersionValue length-independent (slice up to the closing/opening parenthesis instead of fixed offsets). - CI (release / validate-wix-msi / build-arm64-portable / attach-arm64-experimental): accept an optional space in the version regex, tolerating both old and new formats. Deployed clients are unaffected: ProgramUpdates.Check reads exactly 5 characters after "ver" on the first History line, independent of the parenthesis position. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 034c5b0 commit 0f89214

5 files changed

Lines changed: 327 additions & 324 deletions

File tree

.github/workflows/attach-arm64-experimental.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
7979
# release.yml と同じ規則で Version.cs からバージョンを得る
8080
$content = Get-Content "ReciPro/Version.cs" -Raw
81-
if ($content -notmatch 'ver(\d+\.\d+)\(') {
81+
if ($content -notmatch 'ver(\d+\.\d+) ?\(') { # 260805Cl 版番と '(' の間のスペースを許容 (旧: 'ver(\d+\.\d+)\(')
8282
throw "Could not parse version from Version.cs History."
8383
}
8484
$ver = $Matches[1]

.github/workflows/build-arm64-portable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
run: |
6464
# release.yml と同じ規則で Version.cs の History 先頭からバージョンを得る (release の存在確認はしない: artifact のみのため)
6565
$content = Get-Content "ReciPro\Version.cs" -Raw
66-
if ($content -notmatch 'ver(\d+\.\d+)\(') {
66+
if ($content -notmatch 'ver(\d+\.\d+) ?\(') { # 260805Cl 版番と '(' の間のスペースを許容 (旧: 'ver(\d+\.\d+)\(')
6767
throw "Could not parse version from Version.cs History."
6868
}
6969
$ver = $Matches[1]

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
DRY_RUN: ${{ inputs.dry_run }}
7474
run: |
7575
$content = Get-Content "ReciPro/Version.cs" -Raw
76-
if ($content -notmatch 'ver(\d+\.\d+)\(') {
76+
if ($content -notmatch 'ver(\d+\.\d+) ?\(') { # 260805Cl 版番と '(' の間のスペースを許容 (旧: 'ver(\d+\.\d+)\(')
7777
throw "Could not parse version from Version.cs History."
7878
}
7979
$ver = $Matches[1]

.github/workflows/validate-wix-msi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
shell: pwsh
3434
run: |
3535
$content = Get-Content "ReciPro\Version.cs" -Raw
36-
if ($content -notmatch 'ver(\d+\.\d+)\(') { throw "Could not parse version from Version.cs History." }
36+
if ($content -notmatch 'ver(\d+\.\d+) ?\(') { throw "Could not parse version from Version.cs History." } # 260805Cl 版番と '(' の間のスペースを許容 (旧: 'ver(\d+\.\d+)\(')
3737
$ver = $Matches[1]
3838
# アップグレード連鎖テスト用に build 番号を +1 した版数も用意 (旧 release MSI より必ず新しくする)
3939
$parts = $ver.Split('.')

0 commit comments

Comments
 (0)