millorat makefile per a que el dmg es veja millor
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -18,6 +18,7 @@ debug.txt
|
||||
cppcheck-result*
|
||||
desktop.ini
|
||||
ccae_release/
|
||||
Frameworks/
|
||||
resources.pack
|
||||
|
||||
# Herramienta pack_resources (todas las plataformas)
|
||||
|
||||
34
Makefile
34
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
|
||||
@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
|
||||
@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)"
|
||||
|
||||
Reference in New Issue
Block a user