From 461709646387a0a5e40e33aa9a752fcd9d411914 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 24 Dec 2015 15:50:08 -0800 Subject: Add build script to make extension bundle * Add `info.plist` (apparently it needs to be lowercase, weird, who knew?) that contains the necessary keys for the extension (as per http://robodocs.readthedocs.org/roboFontDocumentation/content/extensions/specification.html#specificationextensions) * Create a build script that copies the necessary files into the extension's bundle folder * Create a Makefile with some build and clean rules --- Makefile | 8 ++++++++ build.sh | 13 +++++++++++++ info.plist | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 Makefile create mode 100644 build.sh create mode 100644 info.plist diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1fed1c1 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +build: + sh build.sh + +clean: + rm -rf 'dist/Equalize Sidebearings.roboFontExt' + +install: + open 'dist/Equalize Sidebearings.roboFontExt' diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..003ee52 --- /dev/null +++ b/build.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +current_dir=$(dirname $0) + +# Create base extension directory +base_dir="${current_dir}/dist/Equalize Sidebearings.roboFontExt" +mkdir -p "${base_dir}/lib" + +# Copy Python files to extension lib directory +cp "${current_dir}"/*.py "${base_dir}/lib" + +# Copy Info.plist into extension bundle +cp "${current_dir}"/info.plist "${base_dir}" diff --git a/info.plist b/info.plist new file mode 100644 index 0000000..5278866 --- /dev/null +++ b/info.plist @@ -0,0 +1,33 @@ + + + + + addToMenu + + + path + preferences.py + preferredName + Preferences + shortKey + + + + developer + Teddy Wing + developerURL + + html + + launchAtStartUp + 1 + mainScript + equalize_sidebearings.py + name + Equalize Sidebearings + timeStamp + 1451000676.564177 + version + 0.0.1 + + -- cgit v1.2.3