Update frontend build scripts for pep257
parent
159e287959
commit
2a75c6fcf6
|
@ -1,2 +1,2 @@
|
|||
""" DO NOT MODIFY. Auto-generated by update_mdi script """
|
||||
"""DO NOT MODIFY. Auto-generated by update_mdi script."""
|
||||
VERSION = "e85dc66e1a0730e44f79ed11501cd79a"
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
""" DO NOT MODIFY. Auto-generated by build_frontend script """
|
||||
"""DO NOT MODIFY. Auto-generated by build_frontend script."""
|
||||
VERSION = "30bcc0eacc13a2317000824741dc9ac0"
|
||||
|
|
|
@ -11,7 +11,7 @@ cp build/service_worker.js ..
|
|||
|
||||
# Generate the MD5 hash of the new frontend
|
||||
cd ../..
|
||||
echo '""" DO NOT MODIFY. Auto-generated by build_frontend script """' > version.py
|
||||
echo '"""DO NOT MODIFY. Auto-generated by build_frontend script."""' > version.py
|
||||
if [ $(command -v md5) ]; then
|
||||
echo 'VERSION = "'`md5 -q www_static/frontend.html`'"' >> version.py
|
||||
elif [ $(command -v md5sum) ]; then
|
||||
|
|
|
@ -61,7 +61,7 @@ def write_component(version, source):
|
|||
with open(VERSION_OUTPUT, 'w') as outp:
|
||||
print('Generating version file', VERSION_OUTPUT)
|
||||
outp.write(
|
||||
'""" DO NOT MODIFY. Auto-generated by update_mdi script """\n')
|
||||
'"""DO NOT MODIFY. Auto-generated by update_mdi script."""\n')
|
||||
outp.write('VERSION = "{}"\n'.format(version))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue