From 8e387f0e32bf8b4131ad4ea7b202b173a8404ee1 Mon Sep 17 00:00:00 2001 From: kovacsv Date: Thu, 28 Oct 2021 20:23:39 +0200 Subject: [PATCH] Update three.js file name in build script, too. --- tools/updatelibs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/updatelibs.py b/tools/updatelibs.py index d7007fd..73436b4 100644 --- a/tools/updatelibs.py +++ b/tools/updatelibs.py @@ -56,9 +56,11 @@ def UpdateThreeJs (rootDir, tempDir): PrintInfo ('Copying file ' + os.path.split (src)[1]) shutil.copy2 (src, dst) - PrintInfo ('Replacing file in config.json') + PrintInfo ('Replacing file name') configFilePath = os.path.join (rootDir, 'tools', 'config.json') Tools.ReplaceRegexInFile (configFilePath, 'three.min-r[0-9]+.js', 'three.min-' + threeJsTagName + '.js') + buildScriptPath = os.path.join (rootDir, 'tools', 'build.py') + Tools.ReplaceRegexInFile (buildScriptPath, 'three.min-r[0-9]+.js', 'three.min-' + threeJsTagName + '.js') def Main (argv): toolsDir = os.path.dirname (os.path.abspath (__file__))