diff --git a/Makefile b/Makefile index aee94c0..e804601 100644 --- a/Makefile +++ b/Makefile @@ -107,7 +107,7 @@ INCLUDES := -Isource -Isource/external # Variables según el sistema operativo ifeq ($(OS),Windows_NT) FixPath = $(subst /,\\,$1) - CXXFLAGS := -std=c++20 -Wall -Os -ffunction-sections -fdata-sections -Wl,--gc-sections -static-libstdc++ -Wl,-subsystem,windows -DWINDOWS_BUILD + CXXFLAGS := -std=c++20 -Wall -Os -ffunction-sections -fdata-sections -Wl,--gc-sections -static-libstdc++ -static-libgcc -static -Wl,-subsystem,windows -DWINDOWS_BUILD CXXFLAGS_DEBUG := -std=c++20 -Wall -g -D_DEBUG -DWINDOWS_BUILD LDFLAGS := -lmingw32 -lws2_32 -lSDL3 -lopengl32 RM := del /Q @@ -161,8 +161,9 @@ windows_release: powershell if (Test-Path "$(RELEASE_FOLDER)") {Remove-Item "$(RELEASE_FOLDER)" -Recurse -Force} powershell if (-not (Test-Path "$(RELEASE_FOLDER)")) {New-Item "$(RELEASE_FOLDER)" -ItemType Directory} -# Copia la carpeta 'data' - powershell Copy-Item -Path "data" -Destination "$(RELEASE_FOLDER)" -recurse -Force +# Copia la carpeta 'config' y el archivo 'resources.pack' + powershell Copy-Item -Path "config" -Destination "$(RELEASE_FOLDER)" -recurse -Force + powershell Copy-Item -Path "resources.pack" -Destination "$(RELEASE_FOLDER)" # Copia los ficheros que estan en la raíz del proyecto powershell Copy-Item "LICENSE" -Destination "$(RELEASE_FOLDER)"