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

View File

@@ -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)"