From a50ca53579d95acbf19d9e4ff316ab6f3ba817ea Mon Sep 17 00:00:00 2001 From: Michael Yin Date: Mon, 4 Jul 2016 20:34:28 -0600 Subject: windows: Add windows install package Adds an install process to replace Emoji on Windows. It merges the EmojiOne font with Segoe UI Symbol on the user's machine, and replaces Segoe UI Emoji as well on Win 8 and 10. An uninstall script is also included to assist the user in restoring the original Windows fonts. README also updated. Fixes #15 --- Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 45d4050..312d86d 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,8 @@ OSX_FONT := build/$(FONT_PREFIX)-OSX.ttf OSX_PACKAGE := build/$(FONT_PREFIX)-OSX-$(VERSION) LINUX_PACKAGE := $(FONT_PREFIX)-Linux-$(VERSION) DEB_PACKAGE := fonts-emojione-svginot +WINDOWS_TOOLS := windows +WINDOWS_PACKAGE := build/$(FONT_PREFIX)-Win-$(VERSION) # There are two SVG source directories to keep the emojione assets separate # from the additions @@ -31,12 +33,12 @@ SVG_STAGE_FILES := $(patsubst $(SVG_EXTRA)/%.svg, build/stage/%.svg, $(SVG_STAGE SVG_BW_FILES := $(patsubst build/stage/%.svg, build/svg-bw/%.svg, $(SVG_STAGE_FILES)) SVG_COLOR_FILES := $(patsubst build/stage/%.svg, build/svg-color/%.svg, $(SVG_STAGE_FILES)) -.PHONY: all package regular-package linux-package osx-package copy-extra clean +.PHONY: all package regular-package linux-package osx-package windows-package copy-extra clean all: $(REGULAR_FONT) $(OSX_FONT) # Create the operating system specific packages -package: regular-package linux-package deb-package osx-package +package: regular-package linux-package deb-package osx-package windows-package regular-package: $(REGULAR_FONT) rm -f $(REGULAR_PACKAGE).zip @@ -73,6 +75,16 @@ osx-package: $(OSX_FONT) cp README.md $(OSX_PACKAGE) 7z a -tzip -mx=9 $(OSX_PACKAGE).zip ./$(OSX_PACKAGE) +windows-package: $(REGULAR_FONT) + rm -f $(WINDOWS_PACKAGE).zip + rm -rf $(WINDOWS_PACKAGE) + mkdir $(WINDOWS_PACKAGE) + cp $(REGULAR_FONT) $(WINDOWS_PACKAGE) + cp LICENSE* $(WINDOWS_PACKAGE) + cp README.md $(WINDOWS_PACKAGE) + cp $(WINDOWS_TOOLS)/* $(WINDOWS_PACKAGE) + 7z a -tzip -mx=9 $(WINDOWS_PACKAGE).zip ./$(WINDOWS_PACKAGE) + # Build both versions of the fonts $(REGULAR_FONT): $(SVG_BW_FILES) $(SVG_COLOR_FILES) copy-extra $(SCFBUILD) -c scfbuild.yml -o $(REGULAR_FONT) --font-version="$(VERSION)" -- cgit v1.2.3