From 4a347fbe946e4ee4ae0687f4139a8f6f0aa179cd Mon Sep 17 00:00:00 2001 From: Apaczer <94932128+Apaczer@users.noreply.github.com> Date: Mon, 15 Jul 2024 23:13:09 +0200 Subject: [PATCH] platform/miyoo: scripted versioning update pkg.cfg --- platform/miyoo/pkg.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/miyoo/pkg.cfg b/platform/miyoo/pkg.cfg index dd5fa0d8..940cf277 100644 --- a/platform/miyoo/pkg.cfg +++ b/platform/miyoo/pkg.cfg @@ -12,8 +12,8 @@ CLEAN="" # ENV VAR. ## Specific (mandatory to provide!) TARGET="picodrive" # replace with binary name -VERSION="v2.00" # replace with correct release version if exist - +VERSION="$(cut -d'"' -f2 platform/common/version.h)" # replace with correct release version if exist +test "$(git describe --tags --exact-match HEAD 2>/dev/null)" == "" && VERSION="${VERSION}-$(git rev-parse --short HEAD || echo unknown)" ## Generic - common to all apps (better to not modify) HOMEPATH="/mnt" RELEASEDIR="" -- 2.39.2