Update build action 2, 3

This commit is contained in:
Natsumi
2025-02-04 01:48:06 +13:00
parent 803bee527b
commit 0d27dbd4c5

View File

@@ -7,7 +7,11 @@ const buildDir = path.join(rootDir, 'build');
let version = '';
try {
version = fs.readFileSync(versionFilePath, 'utf8').trim().replaceAll('.', '');
version = fs.readFileSync(versionFilePath, 'utf8').trim();
if (!version.includes('T')) {
// Remove dots only from Stable version
version = version.replaceAll('.', '');
}
} catch (err) {
console.error('Error reading Version file:', err);
process.exit(1);