Update three.js file name in build script, too.
This commit is contained in:
parent
710d3cc335
commit
8e387f0e32
@ -56,9 +56,11 @@ def UpdateThreeJs (rootDir, tempDir):
|
|||||||
PrintInfo ('Copying file ' + os.path.split (src)[1])
|
PrintInfo ('Copying file ' + os.path.split (src)[1])
|
||||||
shutil.copy2 (src, dst)
|
shutil.copy2 (src, dst)
|
||||||
|
|
||||||
PrintInfo ('Replacing file in config.json')
|
PrintInfo ('Replacing file name')
|
||||||
configFilePath = os.path.join (rootDir, 'tools', 'config.json')
|
configFilePath = os.path.join (rootDir, 'tools', 'config.json')
|
||||||
Tools.ReplaceRegexInFile (configFilePath, 'three.min-r[0-9]+.js', 'three.min-' + threeJsTagName + '.js')
|
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):
|
def Main (argv):
|
||||||
toolsDir = os.path.dirname (os.path.abspath (__file__))
|
toolsDir = os.path.dirname (os.path.abspath (__file__))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user