Skip to content

Commit

Permalink
fixed regeneration of plist and icns at compile (#7746)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nejrup authored Nov 3, 2023
1 parent 5c5f760 commit bbf7f1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/openFrameworksCompiled/project/osx/config.osx.default.mk
Original file line number Diff line number Diff line change
Expand Up @@ -363,15 +363,15 @@ afterplatform: $(TARGET_NAME)
@mkdir -p bin/$(BIN_NAME).app/Contents/Resources

# Use the openFrameworks-Info.plist as the default. Feel free to edit it in your project folder to override and values.
@if [ ! -a openFrameworks-Info.plist ]; then cp $(OF_ROOT)/scripts/templates/osx/openFrameworks-Info.plist openFrameworks-Info.plist; fi
@if [ ! -f openFrameworks-Info.plist ]; then cp $(OF_ROOT)/scripts/templates/osx/openFrameworks-Info.plist openFrameworks-Info.plist; fi
@cp openFrameworks-Info.plist bin/$(BIN_NAME).app/Contents/Info.plist;

# App icons
ifeq ($(RUN_TARGET), RunRelease)
@if [ -a of.icns ]; then cp of.icns bin/$(BIN_NAME).app/Contents/Resources/; else cp $(OF_LIBS_PATH)/openFrameworksCompiled/project/osx/of.icns bin/$(BIN_NAME).app/Contents/Resources/; fi
@if [ -f of.icns ]; then cp of.icns bin/$(BIN_NAME).app/Contents/Resources/; else cp $(OF_LIBS_PATH)/openFrameworksCompiled/project/osx/of.icns bin/$(BIN_NAME).app/Contents/Resources/; fi
@sed -i '' 's/\$$(ICON_NAME)/of.icns/g' bin/$(BIN_NAME).app/Contents/Info.plist
else
@if [ -a of_debug.icns ]; then cp of_debug.icns bin/$(BIN_NAME).app/Contents/Resources/; else cp $(OF_LIBS_PATH)/openFrameworksCompiled/project/osx/of_debug.icns bin/$(BIN_NAME).app/Contents/Resources/; fi
@if [ -f of_debug.icns ]; then cp of_debug.icns bin/$(BIN_NAME).app/Contents/Resources/; else cp $(OF_LIBS_PATH)/openFrameworksCompiled/project/osx/of_debug.icns bin/$(BIN_NAME).app/Contents/Resources/; fi
@sed -i '' 's/\$$(ICON_NAME)/of_debug.icns/g' bin/$(BIN_NAME).app/Contents/Info.plist
endif

Expand Down

0 comments on commit bbf7f1c

Please sign in to comment.