mirror of https://github.com/zulip/zulip.git
provision: Generate static bots files using a function call.
This shaves about 350ms from the no-op provision runtime. Fixes #10990.
This commit is contained in:
parent
cae718f184
commit
7d12e2019d
|
@ -24,6 +24,7 @@ from version import PROVISION_VERSION
|
||||||
if False:
|
if False:
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from tools.setup.generate_zulip_bots_static_files import generate_zulip_bots_static_files
|
||||||
|
|
||||||
SUPPORTED_PLATFORMS = {
|
SUPPORTED_PLATFORMS = {
|
||||||
"Ubuntu": [
|
"Ubuntu": [
|
||||||
|
@ -299,7 +300,7 @@ def main(options):
|
||||||
run(["tools/setup/emoji/build_emoji"])
|
run(["tools/setup/emoji/build_emoji"])
|
||||||
|
|
||||||
# copy over static files from the zulip_bots package
|
# copy over static files from the zulip_bots package
|
||||||
run(["tools/setup/generate_zulip_bots_static_files"])
|
generate_zulip_bots_static_files()
|
||||||
|
|
||||||
webfont_paths = ["tools/setup/generate-custom-icon-webfont", "static/icons/fonts/template.hbs"]
|
webfont_paths = ["tools/setup/generate-custom-icon-webfont", "static/icons/fonts/template.hbs"]
|
||||||
webfont_paths += glob.glob('static/assets/icons/*')
|
webfont_paths += glob.glob('static/assets/icons/*')
|
||||||
|
|
Loading…
Reference in New Issue