aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2015-12-24 15:30:17 -0800
committerTeddy Wing2015-12-24 15:30:17 -0800
commit34e86526537d1209066415464ef1dd96c230ba38 (patch)
tree18cef3a7dc8bcb933c56e709ab7a32bae1172471
parentcaba4fd1713abc46b9d443d313ea53714e43637d (diff)
downloadRoboFont-Equalize-Sidebearings-Key-34e86526537d1209066415464ef1dd96c230ba38.tar.bz2
Add build.py
Create a build script modeled after hTools2's (https://github.com/gferreira/hTools2_extension/blob/master/build-RF-extension.py) as referenced by the RoboFont docs. Unfortunately I can't get this to run because it obviously can't import `mojo`. The `mojo` package doesn't seem to exist anywhere, or I can't find it easily. Instead I'm going to write a shell script to build the extension as it seems like that will be easier.
-rw-r--r--build.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/build.py b/build.py
new file mode 100644
index 0000000..09c8c69
--- /dev/null
+++ b/build.py
@@ -0,0 +1,20 @@
+import os
+from mojo.extensions import ExtensionBundle
+
+extension_filename = 'Equalize Sidebearings.roboFontExt'
+extension_path = os.path.join(os.path.dirname(__file__), 'dist', extension_filename)
+
+b = ExtensionBundle()
+b.name = 'Equalize Sidebearings'
+b.developer = 'Teddy Wing'
+b.version = '0.0.1'
+b.mainScript = 'equalize_sidebearings.py'
+b.launchAtStartup = True
+b.addToMenu = [
+ {
+ 'path': 'preferences.py',
+ 'preferredName': 'Preferences',
+ },
+]
+
+b.save(extension_path)