millorat makefile per a que el dmg es veja millor

This commit is contained in:
2025-10-24 23:31:30 +02:00
parent b9fe376f2a
commit 9d974438b3
2 changed files with 37 additions and 2 deletions

1
.gitignore vendored
View File

@@ -18,6 +18,7 @@ debug.txt
cppcheck-result* cppcheck-result*
desktop.ini desktop.ini
ccae_release/ ccae_release/
Frameworks/
resources.pack resources.pack
# Herramienta pack_resources (todas las plataformas) # Herramienta pack_resources (todas las plataformas)

View File

@@ -258,7 +258,24 @@ ifdef ENABLE_MACOS_X86_64
codesign --deep --force --sign - --timestamp=none "$(RELEASE_FOLDER)/$(APP_NAME).app" codesign --deep --force --sign - --timestamp=none "$(RELEASE_FOLDER)/$(APP_NAME).app"
# Empaqueta el .dmg de la versión Intel # Empaqueta el .dmg de la versión Intel
@echo "Creando DMG con iconos de 96x96..."
hdiutil create tmp.dmg -ov -volname "$(APP_NAME)" -fs HFS+ -srcfolder "$(RELEASE_FOLDER)" hdiutil create tmp.dmg -ov -volname "$(APP_NAME)" -fs HFS+ -srcfolder "$(RELEASE_FOLDER)"
hdiutil attach tmp.dmg -mountpoint /Volumes/"$(APP_NAME)"
osascript -e 'tell application "Finder"' \
-e 'tell disk "$(APP_NAME)"' \
-e 'open' \
-e 'set current view of container window to icon view' \
-e 'set toolbar visible of container window to false' \
-e 'set statusbar visible of container window to false' \
-e 'set bounds of container window to {100, 100, 600, 400}' \
-e 'set icon size of icon view options of container window to 96' \
-e 'set arrangement of icon view options of container window to not arranged' \
-e 'update without registering applications' \
-e 'close' \
-e 'end tell' \
-e 'end tell'
sleep 2
hdiutil detach /Volumes/"$(APP_NAME)"
hdiutil convert tmp.dmg -format UDZO -o "$(MACOS_INTEL_RELEASE)" hdiutil convert tmp.dmg -format UDZO -o "$(MACOS_INTEL_RELEASE)"
$(RMFILE) tmp.dmg $(RMFILE) tmp.dmg
@echo "Release Intel creado: $(MACOS_INTEL_RELEASE)" @echo "Release Intel creado: $(MACOS_INTEL_RELEASE)"
@@ -271,7 +288,24 @@ endif
codesign --deep --force --sign - --timestamp=none "$(RELEASE_FOLDER)/$(APP_NAME).app" codesign --deep --force --sign - --timestamp=none "$(RELEASE_FOLDER)/$(APP_NAME).app"
# Empaqueta el .dmg de la versión Apple Silicon # Empaqueta el .dmg de la versión Apple Silicon
@echo "Creando DMG con iconos de 96x96..."
hdiutil create tmp.dmg -ov -volname "$(APP_NAME)" -fs HFS+ -srcfolder "$(RELEASE_FOLDER)" hdiutil create tmp.dmg -ov -volname "$(APP_NAME)" -fs HFS+ -srcfolder "$(RELEASE_FOLDER)"
hdiutil attach tmp.dmg -mountpoint /Volumes/"$(APP_NAME)"
osascript -e 'tell application "Finder"' \
-e 'tell disk "$(APP_NAME)"' \
-e 'open' \
-e 'set current view of container window to icon view' \
-e 'set toolbar visible of container window to false' \
-e 'set statusbar visible of container window to false' \
-e 'set bounds of container window to {100, 100, 600, 400}' \
-e 'set icon size of icon view options of container window to 96' \
-e 'set arrangement of icon view options of container window to not arranged' \
-e 'update without registering applications' \
-e 'close' \
-e 'end tell' \
-e 'end tell'
sleep 2
hdiutil detach /Volumes/"$(APP_NAME)"
hdiutil convert tmp.dmg -format UDZO -o "$(MACOS_APPLE_SILICON_RELEASE)" hdiutil convert tmp.dmg -format UDZO -o "$(MACOS_APPLE_SILICON_RELEASE)"
$(RMFILE) tmp.dmg $(RMFILE) tmp.dmg
@echo "Release Apple Silicon creado: $(MACOS_APPLE_SILICON_RELEASE)" @echo "Release Apple Silicon creado: $(MACOS_APPLE_SILICON_RELEASE)"