diff options
author | Michael Yin <mikeyin@mikeyin.org> | 2016-07-05 05:34:28 +0300 |
---|---|---|
committer | yincrash <yincrash+github@gmail.com> | 2016-07-25 00:27:29 +0300 |
commit | a50ca53579d95acbf19d9e4ff316ab6f3ba817ea (patch) | |
tree | 27de229fd53cb76b5dda4304aa1457bf3e247fef /Makefile | |
parent | b6d5340ce0bbfe6dc5676038550cb296da023501 (diff) |
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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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)" |