diff --git a/shard.yml b/shard.yml index 2c78eaf..35def46 100644 --- a/shard.yml +++ b/shard.yml @@ -8,11 +8,6 @@ targets: gi-crystal: main: src/generator/main.cr -dependencies: - version_from_shard: - github: hugopl/version_from_shard - version: ~> 1.2 - libraries: libgirepository: ~> 1.70 diff --git a/src/generator/main.cr b/src/generator/main.cr index 99ee32c..727bfaa 100644 --- a/src/generator/main.cr +++ b/src/generator/main.cr @@ -1,13 +1,12 @@ require "colorize" require "log" require "option_parser" -require "version_from_shard" require "./binding_config" require "./error" require "./module_gen" -VersionFromShard.declare +VERSION = {{ `shards version #{__DIR__}`.strip.stringify }} private def project_dir exe_path = Process.executable_path