diff options
| author | Teddy Wing | 2015-12-24 15:50:08 -0800 | 
|---|---|---|
| committer | Teddy Wing | 2015-12-24 15:50:08 -0800 | 
| commit | 461709646387a0a5e40e33aa9a752fcd9d411914 (patch) | |
| tree | 442f21cdb5fa0ad485c35026b77a103ae88b0f97 | |
| parent | 34e86526537d1209066415464ef1dd96c230ba38 (diff) | |
| download | RoboFont-Equalize-Sidebearings-Key-461709646387a0a5e40e33aa9a752fcd9d411914.tar.bz2 | |
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
| -rw-r--r-- | Makefile | 8 | ||||
| -rw-r--r-- | build.sh | 13 | ||||
| -rw-r--r-- | info.plist | 33 | 
3 files changed, 54 insertions, 0 deletions
| 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> +	<key>addToMenu</key> +	<array> +		<dict> +			<key>path</key> +			<string>preferences.py</string> +			<key>preferredName</key> +			<string>Preferences</string> +			<key>shortKey</key> +			<string></string> +		</dict> +	</array> +	<key>developer</key> +	<string>Teddy Wing</string> +	<key>developerURL</key> +	<string></string> +	<key>html</key> +	<false/> +	<key>launchAtStartUp</key> +	<integer>1</integer> +	<key>mainScript</key> +	<string>equalize_sidebearings.py</string> +	<key>name</key> +	<string>Equalize Sidebearings</string> +	<key>timeStamp</key> +	<real>1451000676.564177</real> +	<key>version</key> +	<string>0.0.1</string> +</dict> +</plist> | 
