Skip to content

Commit

Permalink
Added Sonoma and Sequoia icons, but the latest version of folderify
Browse files Browse the repository at this point in the history
… does not include support for OSX anymore, so I've now separated the two out into parent folders, with the `makefile` now only affecting `macOS` versions.
  • Loading branch information
othyn committed Oct 6, 2024
1 parent cb4070f commit a111d55
Show file tree
Hide file tree
Showing 299 changed files with 20 additions and 54 deletions.
Binary file modified art/preview_new.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed icons/11.0 - Big Sur/dark/icon.icns
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed icons/11.0 - Big Sur/light/icon.icns
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed icons/12.0 - Monterey/dark/icon.icns
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed icons/12.0 - Monterey/light/icon.icns
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed icons/13.0 - Ventura/dark/icon.icns
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed icons/13.0 - Ventura/light/icon.icns
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added icons/macOS/11.0 - Big Sur/dark/icon.icns
Binary file not shown.
Binary file added icons/macOS/11.0 - Big Sur/light/icon.icns
Binary file not shown.
Binary file added icons/macOS/12.0 - Monterey/dark/icon.icns
Binary file not shown.
Binary file added icons/macOS/12.0 - Monterey/light/icon.icns
Binary file not shown.
Binary file added icons/macOS/13.0 - Ventura/dark/icon.icns
Binary file not shown.
Binary file added icons/macOS/13.0 - Ventura/light/icon.icns
Binary file not shown.
Binary file added icons/macOS/14.0 - Sonoma/dark/icon.icns
Binary file not shown.
Binary file added icons/macOS/14.0 - Sonoma/light/icon.icns
Binary file not shown.
Binary file added icons/macOS/15.0 - Sequoia/dark/icon.icns
Binary file not shown.
Binary file added icons/macOS/15.0 - Sequoia/light/icon.icns
Binary file not shown.
74 changes: 20 additions & 54 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@
# ~ Each line is also run in its own shell, so no variables here!
# ~ DEBUG: remove '> /dev/null 2>&1' from the end of the folderify call
define makeIcon
@ echo "~ Generating icons for: $(1) ~ $(2) ($(if $(3),$(3),light))..."
@ mkdir -p "./icons/macOS/$(1) - $(2)/$(3)"

@ mkdir -p "./icons/$(1) - $(2)/$(if $(3),$(3),light)"
@ folderify ./mask.png --macOS $(1) --color-scheme $(3) > /dev/null 2>&1

@ folderify ./mask.png --macOS $(1) --color-scheme $(if $(3),$(3),light) > /dev/null 2>&1
@ mv "./mask.iconset" "./icons/macOS/$(1) - $(2)/$(3)/icon.iconset"
@ mv "./mask.icns" "./icons/macOS/$(1) - $(2)/$(3)/icon.icns"
endef

define makeIcons
@ echo "~ Generating icons for: $(1) ~ $(2)..."

@ mv "./mask.iconset" "./icons/$(1) - $(2)/$(if $(3),$(3),light)/icon.iconset"
@ mv "./mask.icns" "./icons/$(1) - $(2)/$(if $(3),$(3),light)/icon.icns"
$(call makeIcon,$(1),$(2),light)
$(call makeIcon,$(1),$(2),dark)

@ echo "~ Icons generated."
@ echo ""
Expand All @@ -33,66 +38,27 @@ install:
@ echo "~ Required dependencies installed!"
@ echo ""

# ~~ Clean the generated icon files
# ~~ Clean the generated macOS icon files
.PHONY: clean
clean:
@ echo "~ Cleaning existing icons..."

@ if [ -d ./icons ]; then rm -r ./icons; fi
@ if [ -d ./icons/macOS ]; then rm -r ./icons/macOS; fi

@ echo "~ Icons cleaned!"
@ echo ""

# ~~ Generate the icons
# ~~ Generate the macOS icons
.PHONY: generate
generate:
@ echo "~ Creating new icons..."
@ echo ""

@ # Mac OS X 10.5 - Leopard
$(call makeIcon,10.5,Leopard)

@ # Mac OS X 10.6 - Snow Leopard
$(call makeIcon,10.6,Snow Leopard)

@ # Mac OS X 10.7 - Lion
$(call makeIcon,10.7,Lion)

@ # OS X 10.8 - Mountain Lion
$(call makeIcon,10.8,Mountain Lion)

@ # OS X 10.9 - Mavericks
$(call makeIcon,10.9,Mavericks)

@ # OS X 10.10 - Yosemite
$(call makeIcon,10.10,Yosemite)

@ # OS X 10.11 - El Capitan
$(call makeIcon,10.11,El Capitan)

@ # macOS 10.12 - Sierra
$(call makeIcon,10.12,Sierra)

@ # macOS 10.13 - High Sierra
$(call makeIcon,10.13,High Sierra)

@ # macOS 10.14 - Mojave
$(call makeIcon,10.14,Mojave)

@ # macOS 10.15 - Catalina
$(call makeIcon,10.15,Catalina)

@ # macOS 11 - Big Sur
$(call makeIcon,11.0,Big Sur)
$(call makeIcon,11.0,Big Sur,dark)

@ # macOS 12 - Monterey
$(call makeIcon,12.0,Monterey)
$(call makeIcon,12.0,Monterey,dark)

@ # macOS 13 - Ventura
$(call makeIcon,13.0,Ventura)
$(call makeIcon,13.0,Ventura,dark)
$(call makeIcons,11.0,Big Sur)
$(call makeIcons,12.0,Monterey)
$(call makeIcons,13.0,Ventura)
$(call makeIcons,14.0,Sonoma)
$(call makeIcons,15.0,Sequoia)

@ echo "~ New icons created!"
@ echo ""
Expand All @@ -102,8 +68,8 @@ generate:
preview:
@ echo "~ Creating preview image..."

$(call icnsToPng,"./icons/10.5 - Leopard/light/icon.icns","./art/preview_old.png")
$(call icnsToPng,"./icons/13.0 - Ventura/light/icon.icns","./art/preview_new.png")
$(call icnsToPng,"./icons/OSX/10.5 - Leopard/light/icon.icns","./art/preview_old.png")
$(call icnsToPng,"./icons/macOS/15.0 - Sequoia/light/icon.icns","./art/preview_new.png")

@ echo "~ Preview image created!"
@ echo ""
Expand Down

0 comments on commit a111d55

Please sign in to comment.