mirror of
https://github.com/iv-org/invidious.git
synced 2026-08-17 05:20:51 -05:00
set min version in a variable
This commit is contained in:
parent
67821fa322
commit
5fb5a0e833
@ -53,11 +53,14 @@ 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.
|
||||
{% if compare_versions(Crystal::VERSION, "1.14.1") < 0 %}
|
||||
{{ raise "Crystal version 1.14.1 or newer is required to build Invidious. \
|
||||
{% 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user