mirror of
https://github.com/iv-org/invidious.git
synced 2026-08-16 21:10:53 -05:00
Merge 5fb5a0e833ab18712025eb0afcc9a733e30e566d into d10f2a48021f1768f2d6ff3bd1b9f3de4e0b2d22
This commit is contained in:
commit
a0b090f29e
@ -50,6 +50,18 @@ require "./invidious/routes/**"
|
|||||||
require "./invidious/jobs/base_job"
|
require "./invidious/jobs/base_job"
|
||||||
require "./invidious/jobs/*"
|
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
|
# Declare the base namespace for invidious
|
||||||
module Invidious
|
module Invidious
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user