From 57a69a6e0ca7cf83564ee32200968e2ee886568a Mon Sep 17 00:00:00 2001 From: 2ndbeam <2ndbeam@disroot.org> Date: Thu, 23 Oct 2025 15:12:31 +0300 Subject: [PATCH] Take build version from config.lua --- Makefile | 2 +- config.lua | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4ba0657..da587f7 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=0.1 +VERSION=$(shell grep VERSION config.lua | sed -n -e "s/VERSION = 'v//" -e "s/'//p") IGNORE_FLAGS=--ignore Makefile --ignore build LOVE_PATH := $(shell command -v love) diff --git a/config.lua b/config.lua index 7ea90d2..c2c79e7 100644 --- a/config.lua +++ b/config.lua @@ -1,5 +1,7 @@ require 'tablefuncs' +VERSION = 'v0.2' + -- Global config table ---@class Config ---@field pointRadius number Radius of each grid point, relative to cellSize