summaryrefslogtreecommitdiffstats
path: root/src/invidious.cr
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2022-01-28 15:30:13 +0100
committerGitHub <noreply@github.com>2022-01-28 15:30:13 +0100
commiteba311baa94e8d2848beaad5310b05d5ec22d35c (patch)
treeca297987c9bfde56b2222ae86232397a9da8f4f8 /src/invidious.cr
parent508f137b30f01a7ab5cb00d696d4ff5ae79d49db (diff)
parent0c7726d4e1a66e1a1d1761f81951c87adf057fe6 (diff)
downloadinvidious-eba311baa94e8d2848beaad5310b05d5ec22d35c.tar.gz
invidious-eba311baa94e8d2848beaad5310b05d5ec22d35c.tar.bz2
invidious-eba311baa94e8d2848beaad5310b05d5ec22d35c.zip
Merge pull request #2397 from syeopite/dep-manager-for-videojs-stuff
Add dependency manager script for videojs stuff
Diffstat (limited to 'src/invidious.cr')
-rw-r--r--src/invidious.cr12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index 01cfcae3..8ba62503 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -129,6 +129,18 @@ if CONFIG.check_tables
end
end
+# Resolve player dependencies. This is done at compile time.
+#
+# Running the script by itself would show some colorful feedback while this doesn't.
+# Perhaps we should just move the script to runtime in order to get that feedback?
+
+{% puts "\nChecking player dependencies...\n" %}
+{% if flag?(:minified_player_dependencies) %}
+ {% puts run("../scripts/fetch-player-dependencies.cr", "--minified").stringify %}
+{% else %}
+ {% puts run("../scripts/fetch-player-dependencies.cr").stringify %}
+{% end %}
+
# Start jobs
if CONFIG.channel_threads > 0