2 Commits

Author SHA1 Message Date
0a269449a3 modificat makefile per a windows_release 2025-10-25 13:27:25 +02:00
4164cc8e88 modificat el icono 2025-10-25 13:19:25 +02:00
10 changed files with 8 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ TARGET_NAME := shadertoy
TARGET_FILE := $(DIR_BIN)$(TARGET_NAME)
APP_NAME := Shadertoy
RELEASE_FOLDER := shadertoy_release
RESOURCE_FILE := release/shadertoy.res
# Versión automática basada en la fecha actual (específica por SO)
ifeq ($(OS),Windows_NT)
@@ -74,7 +75,8 @@ endif
windows:
@echo off
@echo Compilando para Windows con nombre: "$(APP_NAME).exe"
$(CXX) $(APP_SOURCES) $(INCLUDES) $(CXXFLAGS) $(LDFLAGS) -o "$(WIN_TARGET_FILE).exe"
windres release/shadertoy.rc -O coff -o $(RESOURCE_FILE)
$(CXX) $(APP_SOURCES) $(RESOURCE_FILE) $(INCLUDES) $(CXXFLAGS) $(LDFLAGS) -o "$(WIN_TARGET_FILE).exe"
strip -s -R .comment -R .gnu.version "$(WIN_TARGET_FILE).exe" --strip-unneeded
windows_debug:
@@ -98,8 +100,11 @@ windows_release:
powershell Copy-Item "README.md" -Destination "$(RELEASE_FOLDER)"
powershell Copy-Item "release\*.dll" -Destination "$(RELEASE_FOLDER)"
# Compila el recurso de icono
@windres release/shadertoy.rc -O coff -o $(RESOURCE_FILE)
# Compila
$(CXX) $(APP_SOURCES) $(INCLUDES) -DRELEASE_BUILD $(CXXFLAGS) $(LDFLAGS) -o "$(WIN_RELEASE_FILE).exe"
$(CXX) $(APP_SOURCES) $(RESOURCE_FILE) $(INCLUDES) -DRELEASE_BUILD $(CXXFLAGS) $(LDFLAGS) -o "$(WIN_RELEASE_FILE).exe"
strip -s -R .comment -R .gnu.version "$(WIN_RELEASE_FILE).exe" --strip-unneeded
# Crea el fichero .zip

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 KiB

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 426 KiB

BIN
release/icon2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

BIN
release/icon_b.pxd Normal file

Binary file not shown.

View File

@@ -1,2 +1,2 @@
// coffee.rc
// shadertoy.rc
IDI_ICON1 ICON "icon.ico"

Binary file not shown.