Skip to content

Commit

Permalink
chore: updated build script
Browse files Browse the repository at this point in the history
  • Loading branch information
amirch1 committed Dec 30, 2024
1 parent 5ed8aec commit 9624a56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build-prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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');
Expand Down

0 comments on commit 9624a56

Please sign in to comment.