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)