diff options
author | Alexandre Flament <alex@al-f.net> | 2021-06-22 10:36:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-22 10:36:19 +0200 |
commit | 2530576f244aef669d4261144a8dd4b47fd8c6b5 (patch) | |
tree | 641ce08e889f8f85e99781f09ea73c01718968a0 /manage | |
parent | fb2f4ba902200c2a9d3ce3358adbfa1e51ae9039 (diff) | |
parent | c1f72b71ba1dbe51d16fcd39edb71c2ae1ddbdc6 (diff) | |
download | searxng-2530576f244aef669d4261144a8dd4b47fd8c6b5.tar.gz searxng-2530576f244aef669d4261144a8dd4b47fd8c6b5.zip |
Merge pull request #157 from searxng/mod_static_build
static build: move generated files to searx/static/themes/*/src/generated
Diffstat (limited to 'manage')
-rwxr-xr-x | manage | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -86,6 +86,8 @@ themes.* : all : build all themes oscar : build oscar theme simple : build simple theme +pygments.* : + less : build LESS files for pygments EOF } @@ -295,7 +297,7 @@ gecko.driver() { } node.env() { - if ! required_commands npm fontforge ttfautohint; then + if ! required_commands npm; then info_msg "to install build tools use::" info_msg " sudo -H ./utils/searx.sh install buildhost" die 1 "install needed build tools first" @@ -325,6 +327,15 @@ node.clean() { dump_return $? } +pygments.less() { + build_msg PYGMENTS "searx_extra/update/update_pygments.py" + if ! pyenv.cmd python searx_extra/update/update_pygments.py; then + build_msg PYGMENTS "building LESS files for pygments failed" + return 1 + fi + return 0 +} + py.build() { build_msg BUILD "python package ${PYDIST}" pyenv.cmd python setup.py \ @@ -462,6 +473,7 @@ test.clean() { themes.all() { ( set -e + pygments.less node.env themes.oscar themes.simple |