forked from hipertipo/hTools2_extension
/
build-RF-extension.py
33 lines (26 loc) · 1.01 KB
/
build-RF-extension.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# [h] build hTools2 as a RoboFont Extension
import hTools2
import importlib
importlib.reload(hTools2)
import os
from mojo.extensions import ExtensionBundle
hTools2_path = os.path.dirname(os.path.dirname(hTools2.__file__ ))
hTools2_html = os.path.join(os.path.dirname(hTools2_path), "Docs/build/html")
extension_file = 'hTools2.roboFontExt'
extension_path = os.path.join(os.path.dirname(__file__), extension_file)
print('building extension...', end=' ')
B = ExtensionBundle()
B.name = "hTools2"
B.developer = 'Gustavo Ferreira'
B.developerURL = 'http://hipertipo.com/'
B.version = "1.9"
B.mainScript = "init-RF-extension.py"
B.launchAtStartUp = 1
B.addToMenu = []
B.requiresVersionMajor = '1'
B.requiresVersionMinor = '5'
B.infoDictionary["repository"] = 'gferreira/hTools2'
B.infoDictionary["summary"] = 'A collection of tools to help with common type design & font production tasks.'
B.infoDictionary["html"] = 1
B.save(extension_path, libPath=hTools2_path, htmlPath=hTools2_html, resourcesPath=None, pycOnly=False)
print('done.')