mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-13 05:40:35 +05:30
Add compile option to disable fetching of player dependencies
This commit is contained in:
parent
170e754998
commit
f73aef33f0
3
Makefile
3
Makefile
@ -62,7 +62,8 @@ test:
|
|||||||
crystal spec
|
crystal spec
|
||||||
|
|
||||||
verify:
|
verify:
|
||||||
crystal build src/invidious.cr --no-codegen --progress --stats --error-trace
|
crystal build src/invidious.cr -Ddont_fetch_videojs \
|
||||||
|
--no-codegen --progress --stats --error-trace
|
||||||
|
|
||||||
|
|
||||||
# -----------------------
|
# -----------------------
|
||||||
|
@ -114,6 +114,7 @@ LOGGER = Invidious::LogHandler.new(OUTPUT, CONFIG.log_level)
|
|||||||
# Check table integrity
|
# Check table integrity
|
||||||
Invidious::Database.check_integrity(CONFIG)
|
Invidious::Database.check_integrity(CONFIG)
|
||||||
|
|
||||||
|
{% unless flag?(:dont_fetch_videojs) %}
|
||||||
# Resolve player dependencies. This is done at compile time.
|
# Resolve player dependencies. This is done at compile time.
|
||||||
#
|
#
|
||||||
# Running the script by itself would show some colorful feedback while this doesn't.
|
# Running the script by itself would show some colorful feedback while this doesn't.
|
||||||
@ -125,6 +126,7 @@ Invidious::Database.check_integrity(CONFIG)
|
|||||||
{% else %}
|
{% else %}
|
||||||
{% puts run("../scripts/fetch-player-dependencies.cr").stringify %}
|
{% puts run("../scripts/fetch-player-dependencies.cr").stringify %}
|
||||||
{% end %}
|
{% end %}
|
||||||
|
{% end %}
|
||||||
|
|
||||||
# Start jobs
|
# Start jobs
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user