class Build::ShardsBuilder

Defined in:

build/shards_builder.cr

Constant Summary

VERSION_MAP = {"1.6.0" => "0.17.1", "1.5.1" => "0.17.1", "1.5.0" => "0.17.1", "1.4.1" => "0.17.1", "1.4.0" => "0.17.1", "1.3.2" => "0.17.1", "1.3.1" => "0.17.1", "1.3.0" => "0.17.1", "1.2.2" => "0.17.1", "1.2.1" => "0.17.1", "1.2.0" => "0.17.1", "1.1.1" => "0.17.1", "1.1.0" => "0.17.1", "1.0.0" => "0.17.1", "0.36.1" => "0.17.1", "0.36.0" => "0.17.1", "0.35.1" => "0.17.1", "0.35.0" => "0.17.1", "0.34.0" => "0.11.1", "0.33.0" => "0.9.0", "0.32.1" => "0.9.0", "0.32.0" => "0.9.0", "0.31.1" => "0.9.0", "0.31.0" => "0.9.0", "0.30.1" => "0.9.0", "0.30.0" => "0.9.0", "0.29.0" => "0.9.0", "0.28.0" => "0.9.0", "0.27.2" => "0.9.0", "0.27.1" => "0.9.0", "0.27.0" => "0.9.0", "0.26.1" => "0.9.0", "0.26.0" => "0.9.0", "0.25.1" => "0.9.0", "0.25.0" => "0.9.0", "0.24.2" => "0.7.2", "0.24.1" => "0.7.2", "0.24.0" => "0.7.2", "0.23.1" => "0.7.1", "0.23.0" => "0.7.1", "0.22.0" => "0.7.1", "0.21.1" => "0.7.1", "0.21.0" => "0.7.1", "0.20.5" => "0.7.1", "0.20.4" => "0.7.1", "0.20.3" => "0.7.1", "0.20.1" => "0.7.1", "0.20.0" => "0.7.1", "0.19.4" => "0.7.1", "0.19.3" => "0.7.1", "0.19.2" => "0.7.1", "0.19.1" => "0.7.1", "0.19.0" => "0.7.1", "0.18.7" => "0.6.3", "0.18.6" => "0.6.3", "0.18.4" => "0.6.3", "0.18.2" => "0.6.3", "0.18.0" => "0.6.3", "0.17.4" => "0.6.3", "0.17.3" => "0.6.3", "0.17.2" => "0.6.3", "0.17.1" => "0.6.3", "0.17.0" => "0.6.3", "0.16.0" => "0.6.3", "0.15.0" => "0.6.2", "0.14.2" => "0.6.2", "0.14.1" => "0.6.2", "0.14.0" => "0.6.2", "0.13.0" => "0.6.2", "0.12.0" => "0.6.2", "0.11.1" => "0.6.0", "0.11.0" => "0.6.0", "0.10.2" => "0.6.0", "0.10.1" => "0.6.0", "0.10.0" => "0.6.0", "0.9.1" => "0.5.3", "0.9.0" => "0.5.3"}.map do |crystal_version, shards_version| [SemanticVersion.parse(crystal_version), SemanticVersion.parse(shards_version)] end.to_h

Map all crystal versions to an applicable version of shards to be installed alongside it.

Class Method Summary

Class Method Detail

def self.build(crystal_version : String, crystal_binary : String, target_binary_path : String, options : Hash(Symbol, String | Nil)) : Bool #

Builds Shards using Crystal, saving the resulting binary to the provided path. The provided path should include the binary name. Returns a boolean representing the success or failure of the build process.


[View source]