# Windows 빌드 판 번호 검사 (관리자 지시 10/17): 시험판이 정식 판과 같은 "v년.월.일_001" 로 보이지 않게. # - 앱은 Lib\jj_mkvmaker.exe 의 ProductVersion ("2026.10.12+번호") 의 끝 세 자리를 순번으로 보인다 (app_update.dart formatVersion). # - 시험판: flutter build windows --build-number <년월일 6자리><순번 3자리> (예: 261012972 → "v2026.10.12_972", APK versionCode 와 같은 번호). # 번호가 1000 보다 작으면 (정식 판 번호, 예: +1) 실패 - 972 Windows 가 +1 로 나가 정식 판 v2026.10.12_001 과 구별되지 않았다. # - 정식 판 (-Release): 번호가 1000 보다 작아야 한다 (시험 번호가 정식 zip 에 들어가지 않게). # 사용: powershell -ExecutionPolicy Bypass -File tool\check_windows_build.ps1 -Dir <배포 폴더 (Lib 가 있는 곳)> [-Release] param( [Parameter(Mandatory = $true)][string]$Dir, [switch]$Release ) $ErrorActionPreference = 'Stop' $exe = Join-Path (Resolve-Path $Dir).Path 'Lib\jj_mkvmaker.exe' if (-not (Test-Path $exe)) { throw "앱 실행 파일이 없습니다: $exe" } $ver = (Get-Item $exe).VersionInfo.ProductVersion if ($ver -notmatch '^(\d+)\.(\d+)\.(\d+)\+(\d+)$') { throw "판 번호를 읽을 수 없습니다: '$ver' ($exe)" } $build = [long]$Matches[4] $shown = '{0}.{1:00}.{2:00}_{3:000}' -f [int]$Matches[1], [int]$Matches[2], [int]$Matches[3], ($build % 1000) if ($Release) { if ($build -ge 1000) { throw "정식 판인데 시험 번호입니다: $ver (화면 v$shown). --build-number 없이 (pubspec 의 +순번) 빌드하세요" } } elseif ($build -lt 1000) { throw ("시험판인데 정식 판 번호입니다: $ver (화면 v$shown - 정식 판과 같게 보임).`n" + "flutter build windows --release --build-number <년월일><순번 3자리> (예: 261012972) 로 다시 빌드하세요") } "통과: $ver (화면 v$shown) · $(if ($Release) { '정식 판' } else { '시험판 - 정식 판 번호와 다름' })"