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 = "1.0.2" B.developer = "Connor Davenport and Andy Clymer" B.developerURL = 'http://www.connordavenport.com/ http://www.andyclymer.com/' B.launchAtStartUp = False B.addToMenu = [{ 'path': 'ThemeManager.py', 'preferredName': 'Theme Manager...', 'shortKey': '', }] B.requiresVersionMajor = '3' B.requiresVersionMinor = '1' B.infoDictionary["html"] = True B.save(extensionPath, libPath=libPath,
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, "SlightlyBetterTransform.roboFontExt") libPath = os.path.join(basePath, "lib") htmlPath = os.path.join(basePath, "html") resourcesPath = os.path.join(basePath, "resources") B = ExtensionBundle() B.name = "Slightly Better Transform" B.version = "1.2" B.mainScript = "SlightlyBetterTransform.py" B.developer = "Andy Clymer" B.developerURL = 'http://www.andyclymer.com/' B.launchAtStartUp = True B.addToMenu = [] B.requiresVersionMajor = '3' B.requiresVersionMinor = '1' B.infoDictionary["html"] = True B.save(extensionPath, libPath=libPath, htmlPath=htmlPath, resourcesPath=resourcesPath, pycOnly=False)
import os import shutil from mojo.extensions import ExtensionBundle lib_path = os.path.dirname(__file__) extension_file = 'MeasureHandles.roboFontExt' extension_path = os.path.join(os.path.join(lib_path, 'extension'), extension_file) # extension_html = os.path.join(lib_path, "_docs") extension_lib_path = os.path.join(extension_path, 'lib') print 'building extension...', B = ExtensionBundle() B.name = u"Measure Handles Tool" B.developer = u'Gustavo Ferreira, Johannes Breyer' B.developerURL = 'http://hipertipo.com/' B.version = "0.1" B.mainScript = "MeasureHandlesTool.py" B.launchAtStartUp = 1 B.addToMenu = [] B.requiresVersionMajor = '1' B.requiresVersionMinor = '5' B.infoDictionary["html"] = 0 B.infoDictionary["com.robofontmechanic.Mechanic"] = { "repository": "johannesbreyer/HandleLength", "description": "A tool to display length & angle of bezier handles in a glyph", } B.save(extension_path,
import os, shutil from mojo.extensions import ExtensionBundle basePath = os.path.dirname(__file__) sourcePath = os.path.join(basePath, 'source') libPath = os.path.join(sourcePath, 'code') htmlPath = os.path.join(sourcePath, 'docs') resourcesPath = os.path.join(sourcePath, 'resources') licensePath = os.path.join(basePath, 'LICENSE') pycOnly = False extensionFile = 'ShapeTool.roboFontExt' extensionPath = os.path.join(basePath, extensionFile) B = ExtensionBundle() B.name = "ShapeTool" B.developer = 'TypeMyType' B.developerURL = 'http://www.typemytype.com' B.icon = os.path.join(basePath, 'ShapeToolMechanicIcon.png') B.version = '1.7' B.launchAtStartUp = True B.mainScript = 'drawShapesTool.py' B.html = True B.requiresVersionMajor = '3' B.requiresVersionMinor = '2' B.addToMenu = [] with open(licensePath) as license: B.license = license.read() # copy README + images to extension docs if not os.path.exists(htmlPath):
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.')
libPath = os.path.dirname(__file__) extensionFile = "RoboFabDocs.roboFontExt" extensionPath = os.path.join(libPath, extensionFile) extensionHtml = os.path.join(libPath, "_build/html/") print "building RoboFab Docs extension...\n" # remove existing extension if os.path.exists(extensionPath): print "\tremoving old RoboFont extension..." shutil.rmtree(extensionPath) # build new extension print "\trebuilding the RoboFont extension..." B = ExtensionBundle() B.name = "RoboFab Docs" B.developer = "RoboFab Developers" B.developerURL = "http://robofab.org/" B.version = "0.1" B.mainScript = "" B.launchAtStartUp = 0 B.addToMenu = [{ "path" : "docs.py", "preferredName" : "RoboFab Docs", "shortKey" : "", }] B.requiresVersionMajor = "1" B.requiresVersionMinor = "5" B.infoDictionary["html"] = 0 B.infoDictionary["com.robofontmechanic.Mechanic"] = { "repository" : "roboDocs/roboFabDocs",
from mojo.extensions import ExtensionBundle basePath = os.path.dirname(__file__) sourcePath = os.path.join(basePath, 'source') libPath = os.path.join(sourcePath, 'code') htmlPath = os.path.join(sourcePath, 'docs') resourcesPath = None licensePath = os.path.join(basePath, 'LICENSE') pycOnly = False extensionFile = 'groupSpacing.roboFontExt' extensionPath = os.path.join(basePath, extensionFile) # extension settings B = ExtensionBundle() B.name = "GroupSpacing" B.developer = 'Gustavo Ferreira' B.developerURL = 'http://hipertipo.com' B.icon = os.path.join(basePath, 'icon.png') B.version = '0.3.2' B.launchAtStartUp = False B.mainScript = '' B.html = True B.requiresVersionMajor = '3' B.requiresVersionMinor = '2' B.addToMenu = [ { 'path': 'groupSpacing.py', 'preferredName': 'GroupSpacing', 'shortKey': '', },
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, "AndysRFHacks.roboFontExt") libPath = os.path.join(basePath, "lib") htmlPath = os.path.join(basePath, "html") resourcesPath = os.path.join(basePath, "resources") B = ExtensionBundle() B.name = "Andy's RF Hacks" B.version = "1.3" B.developer = "Andy Clymer" B.developerURL = 'http://www.andyclymer.com/' B.mainScript = "Setup.py" B.launchAtStartUp = True B.addToMenu = [{ 'path': 'Manager.py', 'preferredName': 'Preferences', 'shortKey': '', }] B.requiresVersionMajor = '3' B.requiresVersionMinor = '1' B.infoDictionary["html"] = True B.save(extensionPath,
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, "3DProjectionView.roboFontExt") libPath = os.path.join(basePath, "lib") htmlPath = os.path.join(basePath, "html") resourcesPath = os.path.join(basePath, "resources") B = ExtensionBundle() B.name = "3D Projection View" B.version = "0.13" B.developer = "Andy Clymer" B.developerURL = 'http://www.andyclymer.com/' B.mainScript = "ProjectionViewControl.py" B.launchAtStartUp = False B.addToMenu = [ { 'path' : 'ProjectionViewControl.py', 'preferredName': 'Enable 3D Projection View Control', 'shortKey' : '', }, { 'path' : 'ProjectionPreview.py', 'preferredName': '3D Projection Preview...', 'shortKey' : '',
# ---------- basePath = os.path.dirname(__file__) libPath = os.path.join(basePath, 'LibExtension') htmlPath = os.path.join(basePath, 'html') licensePath = os.path.join(basePath, 'LICENSE') readmePath = os.path.join(basePath, 'README.md') extensionPath = os.path.join(basePath, 'GlyphConstruction.roboFontExt') modulePath = os.path.join(basePath, "Lib", "glyphConstruction.py") # ---------------- # create extension # ---------------- B = ExtensionBundle() B.name = "Glyph Construction" B.developer = 'Frederk Berlaen' B.developerURL = 'http://typemytype.com/' B.version = '0.5' B.launchAtStartUp = 0 B.mainScript = '' B.html = True B.requiresVersionMajor = '1' B.requiresVersionMinor = '5' B.addToMenu = [ { 'path' : 'glyphConstructionUI.py', 'preferredName': 'Glyph Builder', 'shortKey' : '', }, ]
# load license text from file # see choosealicense.com for more open-source licenses licensePath = os.path.join(basePath, "license.txt") # name of the compiled extension file extensionFile = "OverlayUFOs.roboFontExt" # path of the compiled extension buildPath = os.path.join(basePath, "build") extensionPath = os.path.join(buildPath, extensionFile) # initiate the extension builder B = ExtensionBundle() # name of the extension B.name = "Overlay UFOs" # name of the developer B.developer = "David Jonathan Ross, Petr van Blokland, Roberto Arista" # URL of the developer B.developerURL = "http://github.com/roboDocs" # extension icon (file path or NSImage) imagePath = os.path.join(resourcesPath, "icon.png") B.icon = imagePath # version of the extension B.version = "2.0.1" # should the extension be launched at start-up?
from mojo.extensions import ExtensionBundle basePath = os.path.dirname(__file__) sourcePath = os.path.join(basePath, 'source') libPath = os.path.join(sourcePath, 'code') htmlPath = None # os.path.join(sourcePath, 'docs') resourcesPath = None # os.path.join(sourcePath, 'resources') licensePath = os.path.join(basePath, 'LICENSE') pycOnly = False extensionFile = 'tempEdit.roboFontExt' extensionPath = os.path.join(basePath, extensionFile) # extension settings B = ExtensionBundle() B.name = "tempEdit" B.developer = 'Gustavo Ferreira' B.developerURL = 'http://hipertipo.com' B.icon = None # os.path.join(basePath, 'tempEditMechanicIcon.png') B.version = '0.3' B.launchAtStartUp = False B.mainScript = '' B.html = False B.requiresVersionMajor = '3' B.requiresVersionMinor = '2' B.addToMenu = [ { 'path': 'tempEdit.py', 'preferredName': 'tempEdit', 'shortKey': '', },
import os from mojo.extensions import ExtensionBundle basePath = os.path.dirname(__file__) extensionPath = os.path.join(basePath, "ControlBoard.roboFontExt") libPath = os.path.join(basePath, "lib") htmlPath = os.path.join(basePath, "html") resourcesPath = os.path.join(basePath, "resources") B = ExtensionBundle() B.name = "ControlBoard" B.version = "0.22b" B.mainScript = "ControlBoard.py" B.developer = "Andy Clymer" B.developerURL = 'http://www.andyclymer.com/' B.launchAtStartUp = False B.addToMenu = [{"path" : "ControlBoard.py", "preferredName" : "ControlBoard", "shortKey" : ""}] B.requiresVersionMajor = '1' B.requiresVersionMinor = '5' B.infoDictionary["html"] = True B.save(extensionPath, libPath=libPath, htmlPath=htmlPath, resourcesPath=resourcesPath, pycOnly=False) print "Done"
import os from mojo.extensions import ExtensionBundle basePath = os.path.dirname(__file__) sourcePath = os.path.join(basePath, 'source') libPath = os.path.join(sourcePath, 'code') htmlPath = os.path.join(sourcePath, 'docs') resourcesPath = os.path.join(sourcePath, 'resources') licensePath = os.path.join(basePath, 'LICENSE') extensionFile = 'ConstrainAngleTool.roboFontExt' extensionPath = os.path.join(basePath, extensionFile) B = ExtensionBundle() B.name = "ConstrainAngleTool" B.developer = 'RoboDocs' B.developerURL = 'http://gitlab.com/robodocs' B.icon = None # os.path.join(basePath, 'ConstrainAngleToolMechanicIcon.png') B.version = '0.1' B.launchAtStartUp = True B.mainScript = 'constrainAngleTool.py' B.html = False B.requiresVersionMajor = '3' B.requiresVersionMinor = '3' B.addToMenu = [] with open(licensePath) as license: B.license = license.read() print('building extension...', end=' ') B.save(extensionPath,
# boolean indicating if only .pyc should be included pycOnly = False # name of the compiled extension file extensionFile = 'GlyphBrowser.roboFontExt' # path of the compiled extension buildPath = basePath extensionPath = os.path.join(buildPath, extensionFile) # initiate the extension builder B = ExtensionBundle() # name of the extension B.name = "GlyphBrowser" # name of the developer B.developer = 'LettError' # URL of the developer B.developerURL = 'http://letterror.com/tools.html' if resourcesPath: # extension icon (file path or NSImage) imagePath = os.path.join(resourcesPath, 'icon.png') imagePath = 'GlyphBrowserMechanicIcon.png' B.icon = imagePath # version of the extension B.version = '2.6.6'
# boolean indicating if only .pyc should be included pycOnly = False # name of the compiled extension file extensionFile = 'EditThatNextMaster.roboFontExt' # path of the compiled extension buildPath = basePath extensionPath = os.path.join(buildPath, extensionFile) # initiate the extension builder B = ExtensionBundle() # name of the extension B.name = "EditThatNextMaster" # name of the developer B.developer = 'LettError' # URL of the developer B.developerURL = 'http://letterror.com/tools.html' if resourcesPath: # extension icon (file path or NSImage) imagePath = os.path.join(resourcesPath, 'icon.png') B.icon = imagePath # version of the extension B.version = '1.2.4'
import os from mojo.extensions import ExtensionBundle libPath = os.path.dirname(__file__) extensionFile = 'codeColors.roboFontExt' extensionPath = os.path.join(libPath, extensionFile) print('building extension...', end='') B = ExtensionBundle() B.name = "codeColors" B.developer = 'RoboDocs' B.developerURL = 'http://github.com/roboDocs/' B.version = "0.0.1" B.mainScript = "" B.launchAtStartUp = 0 B.addToMenu = [{ 'path': 'dialog.py', 'preferredName': 'CodeColors', 'shortKey': '' }] B.requiresVersionMajor = '3' B.requiresVersionMinor = '0' B.save(extensionPath, libPath=libPath, resourcesPath=None, pycOnly=False) print('done!\n')
import hTools2 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...', 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.'
from mojo.extensions import ExtensionBundle basePath = os.path.dirname(__file__) sourcePath = os.path.join(basePath, 'source') libPath = os.path.join(sourcePath, 'code') htmlPath = os.path.join(sourcePath, 'docs') resourcesPath = None # os.path.join(sourcePath, 'resources') licensePath = os.path.join(basePath, 'LICENSE') pycOnly = False extensionFile = 'Batch.roboFontExt' extensionPath = os.path.join(basePath, extensionFile) # extension settings B = ExtensionBundle() B.name = "Batch" B.developer = 'TypeMyType' B.developerURL = 'http://www.typemytype.com' B.icon = None # os.path.join(basePath, 'BatchMechanicIcon.png') B.version = '1.9.9' B.launchAtStartUp = True B.mainScript = 'main.py' B.html = True B.requiresVersionMajor = '3' B.requiresVersionMinor = '2' B.addToMenu = [] with open(licensePath) as license: B.license = license.read() # copy README & imgs to extension docs
# boolean indicating if only .pyc should be included pycOnly = False # name of the compiled extension file extensionFile = 'AngleRatioTool.roboFontExt' # path of the compiled extension buildPath = basePath extensionPath = os.path.join(buildPath, extensionFile) # initiate the extension builder B = ExtensionBundle() # name of the extension B.name = "AngleRatioTool" # name of the developer B.developer = 'LettError' # URL of the developer B.developerURL = 'http://letterror.com' if resourcesPath: # extension icon (file path or NSImage) imagePath = os.path.join(resourcesPath, 'icon.png') B.icon = imagePath # version of the extension B.version = '0.3'
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, "BezierSurgeon.roboFontExt") libPath = os.path.join(basePath, "lib") # htmlPath = os.path.join(basePath, "html") B = ExtensionBundle() B.name = "Bezier Surgeon" B.version = "0.201" B.developer = "Connor Davenport" B.developerURL = 'http://www.connordavenport.com/' B.mainScript = "BezierSurgeon.py" B.launchAtStartUp = True B.addToMenu = [{ 'path': 'BezierSurgeon.py', 'preferredName': 'Bezier Surgeon', 'shortKey': '', }] B.requiresVersionMajor = '3' B.requiresVersionMinor = '1' # B.infoDictionary["html"] = True B.save(extensionPath, libPath=libPath, pycOnly=False) # htmlPath=htmlPath, print("Done")
libPath = os.path.dirname(__file__) extensionFile = "RoboFabDocs.roboFontExt" extensionPath = os.path.join(libPath, extensionFile) extensionHtml = os.path.join(libPath, "_build/html/") print "building RoboFab Docs extension...\n" # remove existing extension if os.path.exists(extensionPath): print "\tremoving old RoboFont extension..." shutil.rmtree(extensionPath) # build new extension print "\trebuilding the RoboFont extension..." B = ExtensionBundle() B.name = "RoboFab Docs" B.developer = "RoboFab Developers" B.developerURL = "http://robofab.org/" B.version = "0.1" B.mainScript = "" B.launchAtStartUp = 0 B.addToMenu = [{ "path": "docs.py", "preferredName": "RoboFab Docs", "shortKey": "", }] B.requiresVersionMajor = "1" B.requiresVersionMinor = "5" B.infoDictionary["html"] = 0 B.infoDictionary["com.robofontmechanic.Mechanic"] = { "repository": "roboDocs/roboFabDocs",
with codecs.open(mdPath, mode="r", encoding="utf-8") as f: mdSrc = f.read() M = markdown.Markdown(extensions=[TocExtension(permalink=True), FencedCodeExtension()]) html = htmlTemplate % M.convert(mdSrc) htmlFile = codecs.open(htmlIndexPath, mode="w", encoding="utf-8") htmlFile.write(html) htmlFile.close() # ---------------- # create extension # ---------------- B = ExtensionBundle() B.name = "Glyph Construction" B.developer = 'Frederk Berlaen' B.developerURL = 'http://typemytype.com/' B.version = '0.4' B.launchAtStartUp = 0 B.mainScript = '' B.html = True B.requiresVersionMajor = '1' B.requiresVersionMinor = '5' B.addToMenu = [ { 'path' : 'glyphConstructionUI.py', 'preferredName': 'Glyph Builder', 'shortKey' : '', }, ]
# build RoboFont Extension import os import shutil from mojo.extensions import ExtensionBundle lib_path = os.path.dirname(__file__) extension_file = 'CompareOTFs.roboFontExt' extension_path = os.path.join(lib_path, extension_file) # extension_html = os.path.join(lib_path, "_docs") extension_lib_path = os.path.join(extension_path, 'lib') print 'building extension...', B = ExtensionBundle() B.name = u"CompareOTFs" B.developer = u'Gustavo Ferreira' B.developerURL = 'http://hipertipo.com/' B.version = "0.11" B.mainScript = "" B.launchAtStartUp = 0 B.addToMenu = [ { 'path' : 'compare-otfs.py', 'preferredName' : 'CompareOTFs', 'shortKey' : '', }, ] B.requiresVersionMajor = '1' B.requiresVersionMinor = '5' B.infoDictionary["html"] = 0
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, "BlueZoneEditor.roboFontExt") libPath = os.path.join(basePath, "lib") htmlPath = os.path.join(basePath, "html") resourcesPath = os.path.join(basePath, "resources") B = ExtensionBundle() B.name = "Blue Zone Editor" B.version = "1.2" B.mainScript = "Blues.py" B.developer = "Andy Clymer" B.developerURL = 'http://www.andyclymer.com/' B.launchAtStartUp = True B.addToMenu = [] B.requiresVersionMajor = '3' B.requiresVersionMinor = '1' B.infoDictionary["html"] = True B.save(extensionPath, libPath=libPath, htmlPath=htmlPath, resourcesPath=resourcesPath, pycOnly=False)
shortKey="") ] installAfterBuild = True basePath = os.path.dirname(__file__) sourcePath = os.path.join(basePath, "source") libPath = os.path.join(sourcePath, "code") licensePath = os.path.join(basePath, "license.txt") requirementsPath = os.path.join(basePath, "requirements.txt") extensionFile = "%s.roboFontExt" % name buildPath = os.path.join(basePath, "build") extensionPath = os.path.join(buildPath, extensionFile) B = ExtensionBundle() B.name = name B.developer = developer B.developerURL = developerURL B.version = version B.launchAtStartUp = False B.mainScript = "main.py" B.html = os.path.exists(os.path.join(sourcePath, "documentation", "index.html")) B.requiresVersionMajor = roboFontVersion.split(".")[0] B.requiresVersionMinor = roboFontVersion.split(".")[1] B.addToMenu = menuItems if os.path.exists(licensePath): with open(licensePath) as license: B.license = license.read() if os.path.exists(requirementsPath): with open(requirementsPath) as requirements:
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, "InterpolationSlider.roboFontExt") libPath = os.path.join(basePath, "lib") htmlPath = os.path.join(basePath, "html") resourcesPath = os.path.join(basePath, "resources") B = ExtensionBundle() B.name = "Interpolation Slider" B.version = "1.1" B.mainScript = "InterpolationSlider.py" B.developer = "Andy Clymer" B.developerURL = 'http://www.andyclymer.com/' B.launchAtStartUp = False B.addToMenu = [{ "path": "InterpolationSlider.py", "preferredName": "Interpolation Slider...", "shortKey": "" }] B.requiresVersionMajor = '1' B.requiresVersionMinor = '8' B.infoDictionary["html"] = True B.save(extensionPath,
# build RoboFont Extension import os import shutil from mojo.extensions import ExtensionBundle lib_path = os.path.dirname(__file__) extension_file = 'MeasureHandles.roboFontExt' extension_path = os.path.join(os.path.join(lib_path, 'extension'), extension_file) # extension_html = os.path.join(lib_path, "_docs") extension_lib_path = os.path.join(extension_path, 'lib') print 'building extension...', B = ExtensionBundle() B.name = u"Measure Handles Tool" B.developer = u'Gustavo Ferreira, Johannes Breyer' B.developerURL = 'http://hipertipo.com/' B.version = "0.1" B.mainScript = "MeasureHandlesTool.py" B.launchAtStartUp = 1 B.addToMenu = [] B.requiresVersionMajor = '1' B.requiresVersionMinor = '5' B.infoDictionary["html"] = 0 B.infoDictionary["com.robofontmechanic.Mechanic"] = { "repository" : "johannesbreyer/HandleLength", "description" : "A tool to display length & angle of bezier handles in a glyph", } B.save(extension_path, libPath=lib_path, htmlPath=None, resourcesPath=None, pycOnly=False) print 'done.\n'
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, "ImportExportArt.roboFontExt") libPath = os.path.join(basePath, "lib") htmlPath = os.path.join(basePath, "html") B = ExtensionBundle() B.name = "Import/Export Art" B.version = "1.2" B.developer = "Andy Clymer" B.developerURL = 'http://www.andyclymer.com/' B.mainScript = "ImportExportWindow.py" B.launchAtStartUp = False B.addToMenu = [{ 'path': 'ImportExportWindow.py', 'preferredName': 'Import/Export Art...', 'shortKey': '', }] B.requiresVersionMajor = '3' B.requiresVersionMinor = '1' B.infoDictionary["html"] = True B.save(extensionPath, libPath=libPath, htmlPath=htmlPath, pycOnly=False)
# required extensions requirementsPath = os.path.join(basePath, 'requirements.txt') # name of the compiled extension file extensionFile = 'myExtension.roboFontExt' # path of the compiled extension buildPath = os.path.join(basePath, 'build') extensionPath = os.path.join(buildPath, extensionFile) # initiate the extension builder B = ExtensionBundle() # name of the extension B.name = "myExtension" # name of the developer B.developer = 'RoboDocs' # URL of the developer B.developerURL = 'http://github.com/roboDocs' # extension icon (file path or NSImage) imagePath = os.path.join(resourcesPath, 'icon.png') B.icon = imagePath # version of the extension B.version = '0.2.6' # should the extension be launched at start-up?
# boolean indicating if only .pyc should be included pycOnly = False # name of the compiled extension file extensionFile = 'Threenterpolation.roboFontExt' # path of the compiled extension buildPath = basePath extensionPath = os.path.join(buildPath, extensionFile) # initiate the extension builder B = ExtensionBundle() # name of the extension B.name = "Threenterpolation" # name of the developer B.developer = 'LettError' # URL of the developer B.developerURL = 'http://letterror.com/tools.html' if resourcesPath: # extension icon (file path or NSImage) imagePath = os.path.join(resourcesPath, 'icon.png') B.icon = imagePath # version of the extension B.version = '1.0'