From 3ec1221b0dce213504c363686e414e5a38236dcd Mon Sep 17 00:00:00 2001 From: Paladox none Date: Fri, 29 Nov 2019 20:03:29 +0000 Subject: [PATCH] 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 --- polygerrit-ui/app/rules.bzl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polygerrit-ui/app/rules.bzl b/polygerrit-ui/app/rules.bzl index 3012f7fc8b..ca8c402227 100644 --- a/polygerrit-ui/app/rules.bzl +++ b/polygerrit-ui/app/rules.bzl @@ -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/$@ *",