Fix loading font-roboto-local in the ui

In I731e54ca872 paper-styles were switched to consuming the fonts from
local gerrit site, instead of from external location. However, the fonts
were missed to be added to the final artifact.

Bug: Issue 11993
Change-Id: Iabdb392ae643ddf01c47d0ea99369cba257a9658
This commit is contained in:
Paladox none
2019-11-29 20:03:29 +00:00
parent 3c0b2d4255
commit 3ec1221b0d

View File

@@ -90,6 +90,8 @@ def polygerrit_bundle(name, srcs, outs, app):
# we extract from the zip, but depend on the component for license checking.
"@webcomponentsjs//:zipfile",
"//lib/js:webcomponentsjs",
"@font-roboto-local//:zipfile",
"//lib/js:font-roboto-local",
],
outs = outs,
cmd = " && ".join([
@@ -101,6 +103,7 @@ def polygerrit_bundle(name, srcs, outs, app):
"for f in $(locations " + name + "_theme_sources); do cp $$f $$TMP/polygerrit_ui/styles/themes; done",
"for f in $(locations //lib/js:highlightjs_files); do cp $$f $$TMP/polygerrit_ui/bower_components/highlightjs/ ; done",
"unzip -qd $$TMP/polygerrit_ui/bower_components $(location @webcomponentsjs//:zipfile) webcomponentsjs/webcomponents-lite.js",
"unzip -qd $$TMP/polygerrit_ui/bower_components $(location @font-roboto-local//:zipfile) font-roboto-local/fonts/\*/\*.ttf",
"cd $$TMP",
"find . -exec touch -t 198001010000 '{}' ';'",
"zip -qr $$ROOT/$@ *",