added automatic version fetching

This commit is contained in:
Dominic Grimm 2021-10-23 13:42:39 +02:00
parent 59f49d2f92
commit d1d8104ab4
2 changed files with 8 additions and 1 deletions

View File

@ -8,3 +8,8 @@ authors:
crystal: 1.2.1
license: MIT
dependencies:
version:
github: unn4m3d/version
version: 0.1.1

View File

@ -1,5 +1,7 @@
require "version"
module CompiledLicense
VERSION = {{ `shards version`.stringify.chomp }}
VERSION = Version.fetch
LICENSES = {{ run("./compiled_license/licenses.cr").stringify }}
end