Extension list in build script instead of command line parameters.
This commit is contained in:
parent
e8d94e2b4f
commit
15f3fd85cd
@ -6,6 +6,13 @@ import re
|
|||||||
currentPath = os.path.dirname (os.path.abspath (__file__))
|
currentPath = os.path.dirname (os.path.abspath (__file__))
|
||||||
os.chdir (currentPath)
|
os.chdir (currentPath)
|
||||||
|
|
||||||
|
extensions = [
|
||||||
|
#{
|
||||||
|
# 'name' : 'ExampleExtension',
|
||||||
|
# 'path' : 'extensions/example/example.js'
|
||||||
|
#}
|
||||||
|
]
|
||||||
|
|
||||||
def PrintInfo (message):
|
def PrintInfo (message):
|
||||||
print ('Info: ' + message)
|
print ('Info: ' + message)
|
||||||
|
|
||||||
@ -48,15 +55,6 @@ def BuildEmbeddable (rootFolder, resultFolder):
|
|||||||
ReplaceInFile (indexFilePath, '../jsmodeler/', 'jsmodeler/')
|
ReplaceInFile (indexFilePath, '../jsmodeler/', 'jsmodeler/')
|
||||||
|
|
||||||
def Main ():
|
def Main ():
|
||||||
extensions = []
|
|
||||||
i = 1
|
|
||||||
while i < len (sys.argv):
|
|
||||||
extensions.append ({
|
|
||||||
'name' : sys.argv[i],
|
|
||||||
'path' : sys.argv[i + 1]
|
|
||||||
});
|
|
||||||
i += 2
|
|
||||||
|
|
||||||
rootFolder = os.path.abspath ('..')
|
rootFolder = os.path.abspath ('..')
|
||||||
resultFolder = os.path.join (rootFolder, 'build')
|
resultFolder = os.path.join (rootFolder, 'build')
|
||||||
if os.path.exists (resultFolder):
|
if os.path.exists (resultFolder):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user