Merge 5fb5a0e833ab18712025eb0afcc9a733e30e566d into d10f2a48021f1768f2d6ff3bd1b9f3de4e0b2d22

This commit is contained in:
Fijxu 2026-08-14 22:09:21 -04:00 committed by GitHub
commit a0b090f29e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,6 +50,18 @@ require "./invidious/routes/**"
require "./invidious/jobs/base_job"
require "./invidious/jobs/*"
# Show a nice message for unsupported versions of the Crystal compiler,
# encouraging the user compiling Invidious, to update it's Crystal compiler
# version.
{% begin %}
{% minimum_version = "1.14.1" %}
{% if compare_versions(Crystal::VERSION, minimum_version) < 0 %}
{{ raise "Crystal version #{minimum_version} or newer is required to build Invidious. \
You currently have Crystal version #{Crystal::VERSION} installed. \
We recommend that you install it following the way that the Crystal compiler itself recommend for your OS, see: https://crystal-lang.org/install/" }}
{% end %}
{% end %}
# Declare the base namespace for invidious
module Invidious
end