diff --git a/scripts/build-prod.js b/scripts/build-prod.js index fa45a65fb..8435b484a 100644 --- a/scripts/build-prod.js +++ b/scripts/build-prod.js @@ -53,7 +53,7 @@ console.log('analytics-config.ts has been updated!'); const v2PlayerConfigFileName = "deploy/config.ini"; const v2ConfigFilePath = path.resolve(packageRoot, v2PlayerConfigFileName); let v2ConfigData = fs.readFileSync(v2ConfigFilePath, 'utf8'); -const regex_v2 = /component.version=v\d\.\d\.\d/; +const regex_v2 = /component.version=v\d\.\d\.\dd/; v2ConfigData = v2ConfigData.replace(regex_v2, `component.version=v${versionNumber}`); fs.writeFileSync(v2ConfigFilePath, v2ConfigData, 'utf-8'); @@ -63,7 +63,7 @@ console.log('v2 player config has been updated!'); const v7PlayerConfigFileName = "deploy_v7/config.ini"; const v7ConfigFilePath = path.resolve(packageRoot, v7PlayerConfigFileName); let v7ConfigData = fs.readFileSync(v7ConfigFilePath, 'utf8'); -const regex_v7 = /component.version=v\d\.\d\.\d/; +const regex_v7 = /component.version=v\d\.\d\.\dd/; v7ConfigData = v7ConfigData.replace(regex_v7, `component.version=v${versionNumber}`); fs.writeFileSync(v7ConfigFilePath, v7ConfigData, 'utf-8');