(distPath: string, isDist: boolean)
| 149 | * Extract release build number from file |
| 150 | */ |
| 151 | export function getReleaseBuildNumber(distPath: string, isDist: boolean): string { |
| 152 | // Use the canned build only if provided |
| 153 | const releaseBuildPath = path.join(distPath, 'release_build'); |
| 154 | if (isDist && fs.existsSync(releaseBuildPath)) { |
| 155 | return fs.readFileSync(releaseBuildPath).toString().trim(); |
| 156 | } |
| 157 | return '<no build number found>'; |
| 158 | } |
| 159 | |
| 160 | /** |
| 161 | * Detect if running under Windows Subsystem for Linux |
no test coverage detected