diff --git a/.gitignore b/.gitignore index 3cfbfbc..e097a98 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ debug.txt cppcheck-result* desktop.ini ccae_release/ +Frameworks/ resources.pack # Herramienta pack_resources (todas las plataformas) diff --git a/Makefile b/Makefile index f3318a4..710c66d 100644 --- a/Makefile +++ b/Makefile @@ -258,7 +258,24 @@ ifdef ENABLE_MACOS_X86_64 codesign --deep --force --sign - --timestamp=none "$(RELEASE_FOLDER)/$(APP_NAME).app" # Empaqueta el .dmg de la versión Intel - hdiutil create tmp.dmg -ov -volname "$(APP_NAME)" -fs HFS+ -srcfolder "$(RELEASE_FOLDER)" + @echo "Creando DMG con iconos de 96x96..." + 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)" $(RMFILE) tmp.dmg @echo "Release Intel creado: $(MACOS_INTEL_RELEASE)" @@ -271,7 +288,24 @@ endif codesign --deep --force --sign - --timestamp=none "$(RELEASE_FOLDER)/$(APP_NAME).app" # Empaqueta el .dmg de la versión Apple Silicon - hdiutil create tmp.dmg -ov -volname "$(APP_NAME)" -fs HFS+ -srcfolder "$(RELEASE_FOLDER)" + @echo "Creando DMG con iconos de 96x96..." + 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)" $(RMFILE) tmp.dmg @echo "Release Apple Silicon creado: $(MACOS_APPLE_SILICON_RELEASE)"