| Index: build.py |
| =================================================================== |
| --- a/build.py |
| +++ b/build.py |
| @@ -18,7 +18,7 @@ |
| import os, sys, re, subprocess, buildtools |
| from getopt import getopt, GetoptError |
| -knownTypes = ('gecko', 'chrome', 'opera') |
| +knownTypes = ('gecko', 'chrome', 'opera', 'safari') |
| class Command(object): |
| name = property(lambda self: self._name) |
| @@ -200,6 +200,10 @@ |
| packager.createBuild(baseDir, type=type, outFile=outFile, buildNum=buildNum, |
| releaseBuild=releaseBuild, keyFile=keyFile, |
| experimentalAPI=experimentalAPI) |
| + elif type == 'safari': |
| + import buildtools.packagerSafari as packager |
| + packager.createBuild(baseDir, type=type, outFile=outFile, buildNum=buildNum, releaseBuild=releaseBuild) |
| + |
| def runAutoInstall(baseDir, scriptName, opts, args, type): |
| @@ -425,7 +429,7 @@ |
| command.addOption('Create a build for leak testing', short='m', long='multi-compartment', types=('gecko')) |
| command.addOption('Create a release build', short='r', long='release') |
| command.addOption('Enable use of experimental APIs', long='experimental') |
| - command.supportedTypes = ('gecko', 'chrome', 'opera') |
| + command.supportedTypes = ('gecko', 'chrome', 'opera', 'safari') |
| with addCommand(runAutoInstall, 'autoinstall') as command: |
| command.shortDescription = 'Install extension automatically' |