From e950eb335d2276b2c475b3d6c47ec3bba3f45039 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Mon, 11 Aug 2025 20:30:59 +0200 Subject: [PATCH] YE! ACTUALIZAT MAKEFILE PA WINDOWS ALTRA VOLTA. PUTA IA --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a405d46..63a938e 100644 --- a/Makefile +++ b/Makefile @@ -12,8 +12,12 @@ RELEASE_FOLDER := ccae_release RELEASE_FILE := $(RELEASE_FOLDER)/$(TARGET_NAME) RESOURCE_FILE := release/coffee.res -# Versión automática basada en la fecha actual -VERSION := $(shell date +%Y-%m-%d) +# Versión automática basada en la fecha actual (específica por SO) +ifeq ($(OS),Windows_NT) + VERSION := $(shell powershell -Command "Get-Date -Format 'yyyy-MM-dd'") +else + VERSION := $(shell date +%Y-%m-%d) +endif # Variables específicas para Windows (usando APP_NAME) ifeq ($(OS),Windows_NT)