-
Notifications
You must be signed in to change notification settings - Fork 5
/
buildExtension.py
36 lines (27 loc) · 1002 Bytes
/
buildExtension.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
34
35
36
from __future__ import absolute_import
from __future__ import print_function
import os
from mojo.extensions import ExtensionBundle
basePath = os.path.dirname(__file__)
extensionPath = os.path.join(basePath, "ThemeManager.roboFontExt")
libPath = os.path.join(basePath, "lib")
htmlPath = os.path.join(basePath, "html")
resourcesPath = os.path.join(basePath, "resources")
B = ExtensionBundle()
B.name = "Theme Manager"
B.version = "2.0.0"
B.developer = "Connor Davenport, Andy Clymer, and Tal Leming"
B.developerURL = 'http://www.connordavenport.com/ http://www.andyclymer.com/ https://typesupply.com/'
B.mainScript = 'launch.py'
B.launchAtStartUp = True
B.addToMenu = [
{
'path' : 'ThemeManager.py',
'preferredName': 'Theme Manager...',
'shortKey' : '',
}]
B.requiresVersionMajor = '4'
B.requiresVersionMinor = '1'
B.infoDictionary["html"] = True
B.save(extensionPath, libPath=libPath, htmlPath=htmlPath, resourcesPath=resourcesPath, pycOnly=False)
print("Done")