diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2022-02-07 22:45:08 +0100 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2022-02-07 22:45:08 +0100 |
| commit | f73aef33f013d79d59c069c9e6eb5ec1b8c610d9 (patch) | |
| tree | e29366daba3ec9ee34d914a4c4a23ffa9ade18b0 | |
| parent | 170e75499816af460d76d05ce4d440d37a01e0fb (diff) | |
| download | invidious-f73aef33f013d79d59c069c9e6eb5ec1b8c610d9.tar.gz invidious-f73aef33f013d79d59c069c9e6eb5ec1b8c610d9.tar.bz2 invidious-f73aef33f013d79d59c069c9e6eb5ec1b8c610d9.zip | |
Add compile option to disable fetching of player dependencies
| -rw-r--r-- | Makefile | 3 | ||||
| -rw-r--r-- | src/invidious.cr | 22 |
2 files changed, 14 insertions, 11 deletions
@@ -62,7 +62,8 @@ test: crystal spec 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 # ----------------------- diff --git a/src/invidious.cr b/src/invidious.cr index f4cae7ea..79429404 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -114,16 +114,18 @@ LOGGER = Invidious::LogHandler.new(OUTPUT, CONFIG.log_level) # Check table integrity Invidious::Database.check_integrity(CONFIG) -# 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 %} +{% unless flag?(:dont_fetch_videojs) %} + # 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 %} {% end %} # Start jobs |
